-
Notifications
You must be signed in to change notification settings - Fork 152
Description
The createOption attribute allows the user to type something that wasn't found by the search, and appendNewOption prevents it from showing in the options list.
The event @option fires before the tag is created, but it cannot modify it or prevent it from being created.
I wanted to intercept the creation of the tag. So when the user pressed enter or clicked in the option they typed, it would show a modal, have data saved on the backend, then get the id and send it to multiselect.
If I try to do this in the @option event, I end up with two tags: the one that was created automatically, and the one I created manually.
A way of not creating a tag with createOption would be nice, and a way of (asynchronously) creating the tag and the option, would be even better.