F
FilamentTonkawuck

Add Alpine Collapse plugin to dashboard

I've tried a few methods of adding the script tag for enabling the collapse alpine plugin (https://alpinejs.dev/plugins/collapse). I ended up using a render hook provider, and the PanelsRenderHook::SCRIPTS_BEFORE tag to ensure that the plugin script I added was before the alpine js script tag that filament loads. However, it seems that the alpine js filament is using is not compatible with this plugin? Any way to do this nicely? Thanks
A
awcodes17d ago
What are you trying to do? collapse is already included.
Solution
T
Tonkawuck17d ago
I had a bug in my code where my filament widget had different root elements. Sorry about that! The problem is resolved when fixed it.