flowbite components not working with vue-router #179
Unanswered
sleeping-python
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
-
Hi,
I am trying to use Flowbite with Vuejs along with Vue-router.
When I am using the components within the 'router-view' component, things are working. But when used outside the 'router-view', things work as usual.
When I debugged, I found the component registration part in the model.js is not happening when used within the "router-view" component. As soon as I add a breakpoint to the event listener for the DOMDocumentLoaded event, things started working even within the "router-view" component.
It looks like the contents are dynamically loaded by the Vue-router and on DOMDocumentLoaded these model components are not part of the DOM yet.
Is this a known issue? Is there any workaround for this issue?
Beta Was this translation helpful? Give feedback.
All reactions