themesberg / flowbite

Open-source UI component library and front-end development framework based on Tailwind CSS
https://flowbite.com
MIT License
7.35k stars 710 forks source link

Accordion with LiveWire not working #631

Closed yassinetrbls closed 5 months ago

yassinetrbls commented 11 months ago

Hello,

When loading accordion (or Nested Accordion) with livewire (lazy loading), open/close not working. Even when using wire:ignore.self in LiveWire 3.

I tested with LiveWire 2 (https://laravel-livewire.com/docs/2.x/defer-loading) And Also with LiveWire 3 (https://livewire.laravel.com/docs/lazy)

https://flowbite.com/docs/components/accordion/

wagnerbugs commented 8 months ago

Hello. Please check if it is configured correctly.

https://livewire.laravel.com/docs/navigate#dont-rely-on-domcontentloaded

In projects with Livewire, I resolved all these details with the doc above.

zoltanszogyenyi commented 5 months ago

Answer by @wagnerbugs is correct. Use the initFlowbite() function when the DOM content has loaded.

Uhasith commented 2 weeks ago

I'm facing flowbite JS issues inside my Livewire Components. Such as Accordion , Tooltips Kind Of JS things not working at All. I'm New to Flowbite what can be the issue? @wagnerbugs @zoltanszogyenyi @yassinetrbls