You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With selectize v0.14.0, when initialized with openOnFocus: false, both tab-focus and clicking to focus on the selectize element would not open the dropdown menu.
With selectize v0.15.2 and openOnFocus: false, keyboard focus does not open the dropdown, but clicking does. If I understand the docs, the intention is that neither action should cause the the dropdown when openOnFocus: false.
I created a codepen the demonstrates the problem (change the selectize version to 0.14.0 to see the previous behavior). Here's a bare minimum version of the HTML:
<!DOCTYPE html><htmllang="en"><head><metacharset="UTF-8"><title>Selectize Demo</title><linkrel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/selectize.js/0.15.2/css/selectize.default.min.css"><scriptsrc="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script><!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/selectize.js/0.14.0/js/selectize.min.js"></script> --><scriptsrc="https://cdnjs.cloudflare.com/ajax/libs/selectize.js/0.15.2/js/selectize.min.js"></script><style>select {
width:100%;
margin-top:10px;
}
</style></head><body><h1>Selectize Demo</h1><selectid="select-books"><optionvalue="">Select a book...</option><optionvalue="1984">1984 by George Orwell</option><optionvalue="brave-new-world">Brave New World by Aldous Huxley</option><optionvalue="fahrenheit-451">Fahrenheit 451 by Ray Bradbury</option><optionvalue="dune">Dune by Frank Herbert</option><optionvalue="foundation">Foundation by Isaac Asimov</option></select><script>$(document).ready(function(){$('#select-books').selectize({openOnFocus: false});});</script></body></html>
The text was updated successfully, but these errors were encountered:
With selectize v0.14.0, when initialized with
openOnFocus: false
, both tab-focus and clicking to focus on the selectize element would not open the dropdown menu.With selectize v0.15.2 and
openOnFocus: false
, keyboard focus does not open the dropdown, but clicking does. If I understand the docs, the intention is that neither action should cause the the dropdown whenopenOnFocus: false
.I created a codepen the demonstrates the problem (change the selectize version to 0.14.0 to see the previous behavior). Here's a bare minimum version of the HTML:
The text was updated successfully, but these errors were encountered: