Added a throttle on mousedown preveting the dropdown from reopening after click to close by EffakT · Pull Request #1837 · selectize/selectize.js
Navigation Menu
{{ message }}
selectize / selectize.js Public
- Notifications You must be signed in to change notification settings
- Fork 3.5k
Merged
Conversation
Copy link Copy Markdown
Contributor
EffakT
commented
Jul 27, 2022
EffakT
commented
I found an issue with single selects where clicking on the control to close the dropdown reopens the dropdown due to the click event firing after the mousedown closes the dropdown.
I have added a setting of "closeDropdownThreshold" that defaults to 250ms which prevents the "Click" event from running if it is closed via the mousedown event.
If the user wants the previous functionality (close & reopen when clicking the control), this value can be set to 0.
risadams approved these changes Jul 29, 2022
risadams
merged commit
4c796a2
into
selectize:master
fabienwnklr
mentioned this pull request
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment