Tooltips rendered after onMounted
aren't initializing
#784
Unanswered
jimmiejackson414
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a Nuxt3 project that I'm currently implementing tooltips in. I have a side navigation bar that uses tooltips, and they work fine.
I have a page where data is being loaded during the onMounted lifecycle from the backend, and so while that is being loaded, the page has a spinner inside of a
v-if
. Once the data loads into my store, thev-else
triggers and the child components render to the page (including the tooltips).I believe that because the components render "late" in this way, the tooltips can't initialize properly. I've tried importing the
initTooltips
method from flowbite and setting a watcher on the data, so that once the data is loaded then I can initialize the tooltips, however this still doesn't work. Any ideas how I can get this to work?Here's the simplified version:
page.vue
Beta Was this translation helpful? Give feedback.
All reactions