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

Display values not updating properly when updating options and values with custom "value-prop" #431

Open
GueganVictor opened this issue Oct 28, 2024 · 1 comment

Comments

@GueganVictor
Copy link

Version

  • Vue version: 3

Description

When updating values and options, while using a custom "value-prop", the display doesn't update properly and displays the wrong informations. But when you open the multiselect dropdown, the correct values available in the dropdown but still not updated in the main multiselect input.
It seems like it is still using the old options list instead of the new one.

Demo

https://jsfiddle.net/edw13Lg8/

Please use our JSFiddle template to reproduce the bug. Issues without working reproduction might be ignored.

@GueganVictor
Copy link
Author

In the meantime, A quick workaround is to force the multiselect's update by adding a :key attribute bound to the options :

<VueFormMultiselect
 :key="options"
 :options="options"
 ...
>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant