Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Nezo96-39273050's avatar

Hide flowbite modal after success submit

I have problem that i am facing like 2 hours now and cant solve it. Problem is that after i submit form and successfully save data to db and reset inputs with $this->reset() modal will close but "backdrop" dont and do not know how to solve this problem. I am using this modal https://flowbite.com/docs/components/modal/#form-element what i mean

0 likes
2 replies
Douboy's avatar

Did you find an answer to this? Been trying to figure it out for a few hours and can't seem to get the overlay to go away when Livewire dispatches the .hide() function.

If I manually execute .hide() on a click event, it works fine.

Is there any way to get the modals to close using the data attributes, but dispatched from Livewire after a save() or update()?

Frustrating!

Please or to participate in this conversation.