Solution to tag select new option not submitted on form #560
cpgo
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Using this example https://preline.co/docs/advanced-select.html#tags
I noticed that I can type new value and press enter and it would be added to the input.
But when submitting the form the new options added like that would be missing from the pauload.
So I mde this workaround
Now the options are correctly submitted and I can even access them via
myInput.selectedOptions
Is there already a way to do it on the library? Tried finding it on the docs but had no luck
For my use case I will pobably also add some hidden metadata field to keep track of what
tags
where added this way.Beta Was this translation helpful? Give feedback.
All reactions