Coton
Coton
NNuxt
Created by Rush on 1/13/2024 in #❓・help
Flowbite not working when using nuxtlink
Yep here its because the dom is re-written
37 replies
NNuxt
Created by Rush on 1/13/2024 in #❓・help
Flowbite not working when using nuxtlink
Until now never had the need to initialize a thing. Every tooltip, modal… work out the box with just html
37 replies
NNuxt
Created by Rush on 1/13/2024 in #❓・help
Flowbite not working when using nuxtlink
But now I have a scenario where I need to close a modal from a js function. So I will initialize the modal in the same official way as you
37 replies
NNuxt
Created by Rush on 1/13/2024 in #❓・help
Flowbite not working when using nuxtlink
Yep but flowbite has a documentation page for nuxt install which don’t cover that. Thats why there is few people like me asking
37 replies
NNuxt
Created by Rush on 1/13/2024 in #❓・help
Flowbite not working when using nuxtlink
Or… doing what to do is also a way to not have the JS broken
37 replies
NNuxt
Created by Rush on 1/13/2024 in #❓・help
Flowbite not working when using nuxtlink
You see ?
37 replies
NNuxt
Created by Rush on 1/13/2024 in #❓・help
Flowbite not working when using nuxtlink
Which is fixed by onMounted everywhere OR the stack overflow I put
37 replies
NNuxt
Created by Rush on 1/13/2024 in #❓・help
Flowbite not working when using nuxtlink
I was more on the issue where the JS is broken by navigating on the app without hard refresh
37 replies
NNuxt
Created by Rush on 1/13/2024 in #❓・help
Flowbite not working when using nuxtlink
Ohh I am not here yet
37 replies
NNuxt
Created by Rush on 1/13/2024 in #❓・help
Flowbite not working when using nuxtlink
You said « initialize each component manually » By this I guess that you are using code like the one I provided
37 replies
NNuxt
Created by Rush on 1/13/2024 in #❓・help
Flowbite not working when using nuxtlink
Regarding the issue reported by people like you : when switching page, the js didn’t work anymore
37 replies
NNuxt
Created by Rush on 1/13/2024 in #❓・help
Flowbite not working when using nuxtlink
I mean in your current workflow you are using onMounted(() => { initTooltips(); }) On a component which uses tooltip onMounted(() => { initModals(); initDropdowns(); }) In a component which uses modals + dropdowns… etc If I understand well.
37 replies
NNuxt
Created by Rush on 1/13/2024 in #❓・help
Flowbite not working when using nuxtlink
can you confirm @Rush ? thanks
37 replies
NNuxt
Created by Rush on 1/13/2024 in #❓・help
Flowbite not working when using nuxtlink
Oh ok. So probably depending on how we are using the app So currently if you need modal on a component you import it, a tooltip on an other, you import it too inside…
37 replies
NNuxt
Created by Rush on 1/13/2024 in #❓・help
Flowbite not working when using nuxtlink
and its working for me
37 replies
NNuxt
Created by Rush on 1/13/2024 in #❓・help
Flowbite not working when using nuxtlink
37 replies
NNuxt
Created by Rush on 1/13/2024 in #❓・help
Flowbite not working when using nuxtlink
hey @Rush did you find a better way than putting init on each componant / page ? Thanks !
37 replies