-
Notifications
You must be signed in to change notification settings - Fork 10
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
Multiple Selectで複数選択する際に都度閉じないように修正 #270
Conversation
src/components/Select/Select.tsx
Outdated
@@ -183,6 +183,7 @@ const Select: SelectComponent = ({ | |||
<Styled.Container minWidth={minWidth} isDisabled={isDisabled}> | |||
<ReactSelect | |||
isClearable | |||
closeMenuOnSelect={false} |
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.
外から変更できるようにした方が使いやすいので、引数で挙動変えられる(デフォルトは false
)な方がいいと思いますー
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.
確かに…!修正しました!
@hirokikondo86 Singleセレクトの時は勝手に閉じたほうが良くない? |
@noronaoki |
オプショナルなのね。そしたら実装する人が選べるからいいか。 |
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.
👍
修正しました🙇♂️ |
シングルのSelectを使用していた |
@hirokikondo86 LGTM |
Ref
close voyagegroup/fluct_XDC#124
やったこと
closeMenuOnSelect={false}
を追加して選択時に閉じないように修正スクショ
Before
After