flowbite with react interactive elements don't work #49
-
I've tried to use flowbite via NPM. followed the quick start guide . I've installed the package + added to tailwind.config.js also added in the index.html + imported flowbite in app.tsx. but the interactive elements still don't work :( |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 24 replies
-
Hey @dawit-michael, We are aware of the issue of the event listeners not registering because of the virtual DOM from React. We're currently working on a compatibility solution for v1.2.1 which we could launch in a few days/early January based on progress. Either way, we will launch a separate React + Flowbite library in February and that will make things a lot smoother. Contributions are welcome and if you find a solution, let us know! |
Beta Was this translation helpful? Give feedback.
-
Hi have you solve the problem, im getting the same error |
Beta Was this translation helpful? Give feedback.
-
and for tooltip, add the following lines in your index.html file <script type="module" src="/src/main.jsx"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/flowbite/2.3.0/flowbite.min.js"></script> <script src="../path/to/flowbite/dist/flowbite.min.js"></script> ` |
Beta Was this translation helpful? Give feedback.
Hey @dawit-michael,
We are aware of the issue of the event listeners not registering because of the virtual DOM from React. We're currently working on a compatibility solution for v1.2.1 which we could launch in a few days/early January based on progress.
Either way, we will launch a separate React + Flowbite library in February and that will make things a lot smoother.
Contributions are welcome and if you find a solution, let us know!