Don't open drop down menu when clear values#2198
Don't open drop down menu when clear values#2198JedWatson merged 2 commits intoJedWatson:masterfrom Chopinsky:fix/ClearToOpen
Conversation
|
Just curious, on when this branch will be merged? Regards, |
|
Opening when the clear button is clicked was originally intended behaviour, but having tested the two this does make more sense. Seems like if the user intention is to clear the field, it doesn't necessarily also convey an intention to open the menu... right? This also makes the "clear" behaviour consistent with the behaviour of the "remove" icon on values in a multi-select, so I'm happy to merge it. Would you mind resolving the conflict @Chopinsky? I've taken a look and am not 100% confident how to preserve your fix without digging deeper into it. |
|
Nevermind, I'm about to release a version and want to include this so I've dug in deeper and resolved the conflicts. Thanks for the PR @Chopinsky! |
|
Any chance of getting a release with this included? |
This PR is to address issue #1252, where when "clear" button is clicked upon, the drop down menu will prompt to open. This issue is caused by involuntarily firing the focus event after clearing values, where we will prompt the menu regardless of the context.
To address this issue, we will set a flag in the
clearValuefunction, and then reset the flag after the focus handler finishes.