Skip to content

createOption always creates a tag #204

@rodrigost23

Description

@rodrigost23

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions