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

No update on new data in the list; Not handling properly list changes when we click on the elements. #29

Closed
AlexisTM opened this issue Jan 9, 2019 · 3 comments

Comments

@AlexisTM
Copy link

AlexisTM commented Jan 9, 2019

I have a similar problem to #20 with VueJS.
The data is loaded dynamically with Vue but as no element was available at first, I added a dummy.

    <select multiple id="light-select">
            <option v-bind:value="value.name" v-for="value in lights">{{value.name}}</option>
            <option >ohoh</option>
    </select>

Yet, once I click on the dummy, it refreshes the data but it selects the first element in the real list and not the dummy.

@fabianlindfors
Copy link
Owner

I'm sorry for this insanely late reply. I've never tried multi.js with Vue myself. Did you find a solution for this?

@AlexisTM
Copy link
Author

It happens to be late on single comments ;)

I don't think I had a solution and instead made it myself in a VueJS way.

I guess that the issue comes from the options being shadowed on load of the page, when the options are not yet generated from VueJS side.

@fabianlindfors
Copy link
Owner

Yup, definitely slipped my mind :)

I wish I had more time to work on multi.js these days but I will look into it if I do find some!

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