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
Unable to select blank option with selectOnClose=true & allowClear=true #5646
Comments
Contrary to everything I've said in the past about it, I believe this is one of the cases where we need to enable #3320 as a default behaviour. As far as I can tell, this issue exists for all versions going back to 4.0.1. I can't reproduce it on 4.0.0 because this combinations of options caused a stack overflow (fixed in 393ca4c). |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Bump |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Bump |
+1, this bug is reported in 2016 #4579 |
I added an additional check at the top of _handleSelectOnClose and that seems to have given me the result I'm expecting... for now.
|
Unable to select blank option with selectOnClose=true & allowClear=true
Sample pen:
https://codepen.io/jmalatia/pen/wvwQqXw
Sample code
select2 v4.0.10
tested on Windows 10 Chrome 77
Steps to reproduce in supplied pen:
What is expected:
The first blank option should be selected and/or the first blank option should be in the list so it can be selected manually.
The text was updated successfully, but these errors were encountered: