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

Can't get @glide:mount-after to work #27

Closed drehimself closed 5 years ago

drehimself commented 5 years ago

Hello,

I'm trying to use the mount-after event but it doesn't seem to fire. I'm not sure what I'm missing. Thank you!

https://codesandbox.io/s/86ok92oy9

<vue-glide
  class="demo"
  ref="slider"
  v-model="active"
  type="carousel"
  @glide:slide-click="test"
  @gilde:mount-after="testMount"
>
methods: {
  test(index) {
    alert(`click ${index}`);
  },
  testMount() {
    alert("mounted");
  }
}
stasoft91 commented 5 years ago

+1

antonreshetov commented 5 years ago

Hi @drehimself

  1. No correct event in your code@gilde:mount-after => @glide:mount-after
  2. Fixed in 8349e40d393f10a4baf1f7dd457907c00d73502c