antonreshetov / vue-glide

A slider and carousel as vue component on top of the Glide.js
https://antonreshetov.github.io/vue-glide/
MIT License
269 stars 39 forks source link

Slides added after carousel is initialized cant be shown, altough rendered in html. #47

Open sugoidesune opened 4 years ago

sugoidesune commented 4 years ago

Slides added after initalization cant be navigated to. The slide is in the html, but the slider only loops through the initial slides. I assume i would need to also update the number of slides somehow?

<vue-glide-slide v-for="(slide, i) in slides" :key="i">{{slide}}</vue-glide-slide>
<button v-on:click="addCard()">Add Card</button>

...
addSlide(){
this.slides.push('Another Slide')
}
M-Barari commented 4 years ago

same here

M-Barari commented 4 years ago

@sugoidesune , Dear friend, as I searched and talked to others with the same problem, right now the only solution is reloading it by changing key. read this issue and the doc mentioned in one of comments