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.
Version
Description
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 increatedOption
, so we would filter it directly, and even allow to change the property (including label, when showed). https://github.com/vueform/multiselect/blob/f8af61b2628337fdb66f5dec6982fb6e73f2caac/src/composables/useOptions.js#L210-L225Happy to create the PR if you want to.
Demo
https://jsfiddle.net/hvko13n0/2/