-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: Input, InputWithTooltip, SearchInputの内部ロジックを整理 #5431
base: master
Are you sure you want to change the base?
Conversation
} | ||
|
||
return (e: FocusEvent<HTMLInputElement>) => onFocus(e) | ||
}, [onFocus]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
既存の挙動を無駄関数を使って再現しているだけであったため、削除しました
} | ||
|
||
return (e: FocusEvent<HTMLInputElement>) => onBlur(e) | ||
}, [onBlur]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
こちらも同様に無駄な関数だったため削除しています
() => wrapperClassNameGenerator({ disabled, readOnly, className }), | ||
[disabled, readOnly, className], | ||
) | ||
const wrapperStyle = useMemo(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
classNameとstyleを同時にmemoする意味が薄いため分割しています
91f8166
to
68659aa
Compare
commit: |
関連URL
概要
変更内容
確認方法