Set default option on no_results
#549
Unanswered
MantarySlayer
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
While instantiate TomSelect, we can customize the message to display when no option is found after user input.
But can we choose a default option ?
Exemple :
I've a list of entities in TS and as default first "My entity is not in the list"
Choosing this option show an input to create a new entity. But I'ld like to change "No results found" message into this option, so users don't have to remove input text to choose this option.
In my code, I've set the option like :
It render text like this, but unclickable option, any idea ? Or maybe a potential feature ?
Beta Was this translation helpful? Give feedback.
All reactions