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

Changing data is not reflected with options #16

Closed
diego-betto opened this issue Jan 12, 2021 · 3 comments
Closed

Changing data is not reflected with options #16

diego-betto opened this issue Jan 12, 2021 · 3 comments

Comments

@diego-betto
Copy link

Hi,

it seems that if you change options accessing data directly, rendered options are not updated.
What I'm missing?

Here an example: after 3 seconds options inside data are changed (check console) but options in the select are not regenerated.

https://jsfiddle.net/ex3ntia/vLdfetq7/6/

Thank you

@diego-betto
Copy link
Author

ok it seems that it loses the reference if you try to assign a new array directly.
In this example after 6 seconds I remove all items from the options array and then push new content.
It works.

https://jsfiddle.net/ex3ntia/vLdfetq7/9/

@adamberecz
Copy link
Collaborator

Now it should work when you replace :options property not alternating it. Please update to 1.2.5

@diego-betto
Copy link
Author

Tnx!

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

2 participants