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

Slides stop working when receiving slides data from props #176

Open
LeoYudi opened this issue Mar 22, 2022 · 0 comments
Open

Slides stop working when receiving slides data from props #176

LeoYudi opened this issue Mar 22, 2022 · 0 comments

Comments

@LeoYudi
Copy link

LeoYudi commented Mar 22, 2022

I'm having a problem when using slides that receive the slides data from props.

<vueper-slides :infinite="false" :bullets="false" fixedHeight="250px" class="no-shadow" :visibleSlides="3.5" :gap="5" :draggingDistance="20">
  <vueper-slide v-for="(slide, i) in slides" :key="i">
    <template #content>
      <a :href="slide.url" target="_blank">
        <div class="vueperslide__content-wrapper" style="flex-direction: row">
          <div class="cardTip">
            <p>{{ slide.title }}</p>
            <div class="iconTip"></div>
          </div>
        </div>
      </a>
    </template>
  </vueper-slide>
</vueper-slides>

Basically, when i do this it works:

data(){
  return { slides: [{ title: 'test', url: 'test' }] }
}

But, props makes the drag and arrows click stop working:

props: {
  slides: Array,
},

I'm using Vue with Nuxt, so maybe that's a problem with ssr lifecycle ?

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

1 participant