We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm activating TS as follows, against a simple multiple select.
ts[id] = new TomSelect("#"+id,{dropdownParent:$("#"+id).parent(),plugins: { remove_button:{ title:'Remove', } },onItemAdd:function(){ this.setTextboxValue(''); this.refreshOptions(); }})
later on, I change the underlying options (based on result of an ajax call) and do an
ts[id].sync()
this correctly updates the selected items, but opens the drop-down list.
ts[id].close()
doesn't close the list.
any suggestions on a workaround (I don't want the drop-down open unless the user explicitly clicks on the select)
Expected behaviour would be for the dropdown list not to appear at all
The text was updated successfully, but these errors were encountered:
found a workaround by delaying the .close() half a second
.close()
setTimeout(function(){ts[id].close();},500)
but that doesn't seem particularly elegant!
Sorry, something went wrong.
No branches or pull requests
Bug description
I'm activating TS as follows, against a simple multiple select.
later on, I change the underlying options (based on result of an ajax call) and do an
this correctly updates the selected items, but opens the drop-down list.
doesn't close the list.
any suggestions on a workaround (I don't want the drop-down open unless the user explicitly clicks on the select)
Expected behavior
Expected behaviour would be for the dropdown list not to appear at all
Steps to reproduce
...
X. See error
Additional context
The text was updated successfully, but these errors were encountered: