Menu with options doesn't close if 1) There are chosen option 1+ and 2) Used onChange #5706
Unanswered
vinaty-git
asked this question in
Q&A
Replies: 1 comment
-
The issue was in animatedComponents |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I have two Selects isMulti setting. And two onChange handlers to save chosen option to the state. If I choose more than 1 option in one Select and click outside the Select component menu dropdown doesn't close. It is also not closing even if I click on another Select. In that case I have twop opened dropdowns at once. The only one case it is closing is when I click on arrow of the Select. If to remove onChange - menu dropdown closing works as exptected no matter chosen options or not. So I do not whether it is a bug or I have wrong onChange handlers.
Handlers write selected options to states:
Here goes some rerutn and than Selects
Kindly ask for help and ideas. Spend the whole day trying to write workaround with js but it causes conflicts with native react-select in some cases of remove() when trying to delete menu dropdowns progrmatically.
Best regards,
Beta Was this translation helpful? Give feedback.
All reactions