Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug][DropDownList] V-model property not updated when onchange event is handled #615

Open
vveesseelliinnaa opened this issue Sep 12, 2024 · 0 comments
Labels
Bug Item which indicates that something is not working Kendo UI for Vue SEV: Low wrappers issue related to Kendo Vue Wrappers

Comments

@vveesseelliinnaa
Copy link
Contributor

vveesseelliinnaa commented Sep 12, 2024

Describe the bug
All components that have both v-model and :change events specified, are not updating the model when the user selects a different item from the list of items.

To Reproduce

  1. Go to https://stackblitz.com/edit/ltezup-e8b2tl?file=src%2Fmain.vue
  2. Click to the first DropDown and select a value
  3. Repeat the step and observe that the value is not updated

Expected behavior
Repeat the same steps but with the "Normal Select button" and see that the value is updated on every change.

**Additional details **
Reported in Ticket ID: 1663874

Possible workarounds

Workaround 1

Use the component in controlled mode when the onChange event is handled in order to update its value properly

    onChange: function (e) {
      this.selectedOption = e.sender.value();
    },

Workaround 2

Implement a custom myDropDownList component wrapping the original DropDownList and apply the additional value assigning logic only in it:

@vveesseelliinnaa vveesseelliinnaa added Bug Item which indicates that something is not working SEV: Low wrappers issue related to Kendo Vue Wrappers Kendo UI for Vue labels Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Item which indicates that something is not working Kendo UI for Vue SEV: Low wrappers issue related to Kendo Vue Wrappers
Projects
None yet
Development

No branches or pull requests

1 participant