When using the Carousel API for template ref and attempting to use ref.value.select(n), the select (page) functions only with the example that uses an interval. If you try to set it to start on a specific image in the Carousel when mounted with the usage of onMounted and/or use the next cycle with nextTick, it does not work.
Is there another way we're supposed to be setting on load, or is this a bug?
Environment
Darwin
v20.12.2
3.11.2
3.11.1
2.9.6
npm@10.5.0
-
head
,extends
,modules
,ui
,colorMode
,devtools
,typescript
,eslint
@nuxt/content@2.12.1
,@nuxt/eslint@0.3.13
,@nuxt/ui@2.15.2
,@nuxt/fonts@0.6.1
,@nuxt/image@1.7.0
,@vueuse/nuxt@10.9.0
-
Version
v2.15.2
Reproduction
https://stackblitz.com/edit/nuxt-ui-ddqck8?file=components%2Fgallery.vue
Description
When using the Carousel API for template ref and attempting to use
ref.value.select(n)
, the select (page) functions only with the example that uses an interval. If you try to set it to start on a specific image in the Carousel when mounted with the usage ofonMounted
and/or use the next cycle withnextTick
, it does not work.Is there another way we're supposed to be setting on load, or is this a bug?
Additional context
Logs
No response