v-model data isn't available in v-on:change

1 Answer 45 Views
MultiSelect MultiSelect wrapper
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 01 Mar 2024, 12:12 PM
I have a multiselect (jquery wrapper) and I need to query when the multiselect value changes, so I bind with v-on:change, but the new value isn't there in the v-model.  If I select another item the state shows me the previous selection, it's like it's always 1 step behind?

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 05 Mar 2024, 01:34 PM

Hello,

In cases when we need something more than just the v-model we recommend using value/@change instead and remove the v-model. Here is the example that worked at my side:  https://stackblitz.com/edit/pjya9m-vy8gcf?file=src%2Fmain.vue

Please review it and let me know if your scenario is somehow different so we could inspect it once again.

Regards,
Plamen
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources

sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
commented on 05 Mar 2024, 01:35 PM

Works for me, better than a timeout, thanks!
Tags
MultiSelect MultiSelect wrapper
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
Plamen
Telerik team
Share this question
or