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
{{ message }}
This repository has been archived by the owner on Oct 2, 2019. It is now read-only.
When selectize theme is used, if the selected data is 0 (as number) input box is not hidden and the bar is not well shown.
I noticed that the criterion to hide the input box is
It should be: "hide it if search is disabled or hide it if something is selected and the box is closed", but it doesn't work if $select.selected is 0 (as 0 is false in javascript).
So i think that is should be something like
Previous check was only for a falsy value rather than null or undefined
causing input box not to be hidden even though an item had been selected.
(As that item's value evaluated to fals-y)
Update check to ensure falsy-values actually register as being selected.
Closes#1304
# for freeto subscribe to this conversation on GitHub.
Already have an account?
#.
When selectize theme is used, if the selected data is
0
(as number) input box is not hidden and the bar is not well shown.I noticed that the criterion to hide the input box is
It should be: "hide it if search is disabled or hide it if something is selected and the box is closed", but it doesn't work if
$select.selected
is0
(as0
is false in javascript).So i think that is should be something like
I tried only with selectize theme. Didn't check if it is handled with other themes.
The text was updated successfully, but these errors were encountered: