Replies: 1 comment
-
Hi @wanted80, Thank you for your question. When inspecting the code, my initial guess is that Maybe something along these lines: watch(
() => emblaNode.value,
() => {
if (emblaNode.value) {
EmblaCarousel.globalOptions = useEmblaCarousel.globalOptions
emblaApi.value = EmblaCarousel(
emblaNode.value,
storedOptions,
storedPlugins
)
} else {
emblaApi.value = undefined
}
},
{ immediate: true }
) This improvement has been added/fixed in Until then, you'll have to call |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
Hello,
I'm trying to integrate Embla Carousel in a Vue (v3.5.13) component (composition api) and I have an issue when using a v-if on the results ref variable in the parent/root div. Without the
v-if="isNotEmpty(results)"
control Embla work fine.Have you guys a suggestion to make it work and keeping the v-if on top?
Thanks.
If applicable, which variants of Embla Carousel are relevant to this question?
Additional information
A simplified version of the component:
CodeSandbox example
No response
Beta Was this translation helpful? Give feedback.
All reactions