This repository was archived by the owner on Apr 18, 2026. It is now read-only.
Repository navigation
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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/
All reactions