Open
Description
Version
- Vue version: 3
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 in createdOption
, 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
Metadata
Metadata
Assignees
Labels
No labels