You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const play = () => {
if (!hasNextRef.value && hasPrevRef.value) {
horizontalRef.value.scrollToIndex(0)
return
}
if (hasNextRef.value) {
horizontalRef.value.next()
}
}`
i'm getting error on the play functions vue-horizontal.es.js:1 Uncaught TypeError: Cannot read properties of undefined (reading 'stopPropagation') at Proxy.next (vue-horizontal.es.js:1:1258) at play (carousel-hero.vue:53:37)
The text was updated successfully, but these errors were encountered:
`onMounted(() => {
observeVisibility(horizontalRef.value.$el, (visible) => {
if (visible) {
interval.value = setInterval(play, 5000)
} else {
clearInterval(interval.value)
}
})
})
onUnmounted(() => {
clearInterval(interval.value)
})
const play = () => {
if (!hasNextRef.value && hasPrevRef.value) {
horizontalRef.value.scrollToIndex(0)
return
}
if (hasNextRef.value) {
horizontalRef.value.next()
}
}`
i'm getting error on the play functions
vue-horizontal.es.js:1 Uncaught TypeError: Cannot read properties of undefined (reading 'stopPropagation') at Proxy.next (vue-horizontal.es.js:1:1258) at play (carousel-hero.vue:53:37)
The text was updated successfully, but these errors were encountered: