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

Sliders update images but not number of images #26

Closed
csik opened this issue Dec 22, 2016 · 6 comments
Closed

Sliders update images but not number of images #26

csik opened this issue Dec 22, 2016 · 6 comments
Assignees
Labels
T: bug Functionality that does not work as intended/expected

Comments

@csik
Copy link

csik commented Dec 22, 2016

When using sliders I'm trying to set the images dynamically. In the new Vue() constructor I have data like:
slider_items: {urls: [{},{},{}]}
and I if I later state:
myVue.slider_items.urls = newUrls;
the images change successfully, and myVue.slider_items.urls is exactly what I'd expect.

However, the number of images the slider has is unchanged.

If there were three urls in the view constructor, and the new myVue.slider_items.urls.length === 5, only the first three images cycle and only 3 slider_controls buttons render. Likewise, if myVue.slider_items.urls started in the constructor with 3 urls and the newly minted myVue.slider_items.urls contains only one object, the slider will show that new image but then two blank screens.

@johnleider johnleider self-assigned this Dec 22, 2016
@johnleider johnleider added the T: bug Functionality that does not work as intended/expected label Dec 23, 2016
@johnleider
Copy link
Member

Fixed with 8749d03.

@csik
Copy link
Author

csik commented Dec 27, 2016

Everything I'd been working with is now broken... both sliders and navbars now show up as "undefined."

I've reduced everything down to a single slider and here is what it gives me:

vue.js:525 [Vue warn]: Error in watcher "current"
(found in component )
warn @ vue.js:525
run @ vue.js:1752
flushSchedulerQueue @ vue.js:1548
(anonymous) @ vue.js:477
nextTickHandler @ vue.js:426
vue.js:439 TypeError: Cannot read property '_uid' of undefined
at VueComponent.current (vuetify.js:2842)
at Watcher.run (vue.js:1746)
at flushSchedulerQueue (vue.js:1548)
at Array. (vue.js:477)
at nextTickHandler (vue.js:426)
logError @ vue.js:439
backend.js:1 [vue-devtools] Ready. Detected Vue v2.1.7

@johnleider
Copy link
Member

Make sure you are using Vue@2.1.6. Vuetify does not support Vue@2.1.7 yet.

@csik
Copy link
Author

csik commented Dec 27, 2016

Thanks, got it. Sorry for the confusion.

@johnleider
Copy link
Member

No worries. There are some pretty big issues with slots in 2.1.7 and Vuetify uses tons of them!

@lock
Copy link

lock bot commented Apr 17, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. Please direct any non-bug questions to our Discord

@lock lock bot locked as resolved and limited conversation to collaborators Apr 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T: bug Functionality that does not work as intended/expected
2 participants