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
When I select an item with closeAfterSelect: true, the focus remains inside the element which means that a new click in the element does not trigger the dropdown. Therefore, I added onChange: blur() to try and remove the focus but the focus remains.
When I remove all items from the list, the select field height collapses with NO placeholder displayed. It's not until I click back into the field that the field returns to its original height and the placeholder appears again. I tried adding onItemRemove: focus() to reset the placeholder but that is not working either.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have an existing select which I have just selectized.
I use Ajax which is triggered when an item in the select list is selected.
$('#saleCatFilter').change();
When I select an item everything works as expected except when I am trying to apply a blur() or focus() event.
When I select an item with closeAfterSelect: true, the focus remains inside the element which means that a new click in the element does not trigger the dropdown. Therefore, I added onChange: blur() to try and remove the focus but the focus remains.
When I remove all items from the list, the select field height collapses with NO placeholder displayed. It's not until I click back into the field that the field returns to its original height and the placeholder appears again. I tried adding onItemRemove: focus() to reset the placeholder but that is not working either.
https://jsfiddle.net/o7abkx85/1/
Beta Was this translation helpful? Give feedback.
All reactions