Flowbite modals issue. #147
Replies: 5 comments 1 reply
-
This also happens with the Drawer component when you change the paginate number |
Beta Was this translation helpful? Give feedback.
-
Hey @GianmarcoVarroneDev @apydevs, Perhaps you can try initialising the modals/drawers etc using an onMounted lifecycle method similar to what you can do with Vue or React? Here's an example: https://flowbite.com/docs/getting-started/vue/#data-attributes Cheers, |
Beta Was this translation helpful? Give feedback.
-
For me, using wire:ignore on modal tag worked just fine to prevent modal from flicking and hide. But now when I search for something and erase the search, the buttons that triggers the modal just lost the event listener |
Beta Was this translation helpful? Give feedback.
-
Hello, same issue with the accordion... |
Beta Was this translation helpful? Give feedback.
-
In addition to using "wire:ignore" in the modals, you must add the following code in app.js in livewire v3:
|
Beta Was this translation helpful? Give feedback.
-
I'm having a real hard time using Flowbite's modals with Livewire. I have a Blade view restaurants.index rendering the x-layout Blade component, calls the livewire:restaurants/ component, and the modal for creating a new resource. (restaunts.index view code)
The livewire:restaurants/ view component has the following code while, the Restaurants class component has the following inside.
The issue that I'm facing is that, on the first-page loading, each of the three modals is showing and working correctly. Still, when I perform a Livewire action (ex., deleting a record via the delete() method), modals either stop working at all or, if they work, are not appropriately rendered (for example, generated on the top left corner of the page).
This seems to be a peculiar behavior caused by Livewire. Do you have any idea of what can cause this issue and how to solve it?
Beta Was this translation helpful? Give feedback.
All reactions