-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Clicking an option after searching doesn't always close dropdown #470
Comments
Yes, I see the same issue. I want to create a new items if it's not already in the list of options. If I click 'Add "my new item"?' then the dropdown does not close and shows the original options. However, if I press enter to create my new option then the dropdown goes away (as I would expect). e.g. on the demo page if you go the 'Custom render options/values' select and type in 'a' and then click on 'Add "a"?', you see that the dropdown shows up. |
We faced the same issue after implementing this control in our solution. On the demo page it reproduces too:
|
This seems to be a timing issue. If you pause in the chrome dev tools, and wait a few seconds, regardless of the option you pick, the menu stays open. |
👍 |
Please note that menu reopens only when:
|
Appears to be fixed? |
Yes, seems to be fixed. |
Thanks for picking that up @abraham-chan and @wmf23! I didn't realise that was the cause of this issue, was implementing it for best practice. Glad to know it works :) |
On the demo page on the States dropdown, search for "e".
Click "New South Wales" and the dropdown closes as expected.
Click "Queensland" and the dropdown stays open.
The text was updated successfully, but these errors were encountered: