You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I then have to find the difference of selection and previousSelection to figure out which item was just added or removed. Finally I have to add some more logic to figure whether the item was added or removed. It would be usefull for me if the @input event also told me which item I just added or removed into/out of my v-model array. Currently, it only gives me the full selection array.
Proposed solution
two additional parameters (added, removed) with @input that store the added or removed element like so:
Problem to solve
Currently I have to store a copy of my v-model to be able to determine what items I added or removed to or from the array selection, like so:
I then have to find the difference of selection and previousSelection to figure out which item was just added or removed. Finally I have to add some more logic to figure whether the item was added or removed. It would be usefull for me if the @input event also told me which item I just added or removed into/out of my v-model array. Currently, it only gives me the full selection array.
Proposed solution
two additional parameters (added, removed) with @input that store the added or removed element like so:
The text was updated successfully, but these errors were encountered: