[Feature] Add third parameter "removedOption" to @select event if previously a option was selected #1813
mediaessenz
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm currently facing the problem, that I have several select boxes which options should depend on each other.
If an option is selected in box A it should disapear in box B and the other way around.
I got it working by using the @remove and @select events – as long as the user is deselecting the previous selection and make a new selection afterward.
But if the user changes his selection in one step, no @remove event is currently fired and a @change event is not available as well.
I got it working finally with a construct like so, but it feels not realy good ...:
It would be much easier, if there would be a third parameter "removedOption" given to the @select event if previously a option was selected. This would not break the current behaviour and could imo be realized easily.
Beta Was this translation helpful? Give feedback.
All reactions