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
Hi, thanks for your work.
I'm trying to trim values that are created. However, if you only enter a space , we can avoid to create the option but not avoid to show and empty one in the list.
Ex: (spaces are in the search bar)
It would be great to be able to sanitize the search query to trim the value here directly.
Another solution would be to execute onCreate directly in createdOption, so we would filter it directly, and even allow to change the property (including label, when showed).
Version
Description
Hi, thanks for your work.
, we can avoid to create the option but not avoid to show and empty one in the list.
I'm trying to trim values that are created. However, if you only enter a space
Ex: (spaces are in the search bar)
It would be great to be able to sanitize the search query to trim the value here directly.
Another solution would be to execute
onCreate
directly increatedOption
, so we would filter it directly, and even allow to change the property (including label, when showed).multiselect/src/composables/useOptions.js
Lines 210 to 225 in f8af61b
Happy to create the PR if you want to.
Demo
https://jsfiddle.net/hvko13n0/2/
The text was updated successfully, but these errors were encountered: