© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
3 replies
TNDJXD

How to collapse section on button click

I have a livewire component that is rendering the form I want that when form is submited I collapse section I tried by passing reactive property to form livewire component but it only works on second click even though the prop got updated.

Form component PHP
https://gist.github.com/TNDJX/c5b730ccec35b98e02f13b8432ca1e64

From component HTML
https://gist.github.com/TNDJX/275a1d39917508775a0cfa437c2f7f93

The component holding the form
PHP
https://gist.github.com/TNDJX/7fc1df22ea4d2836c5c78d2597e29a65

HTML
https://gist.github.com/TNDJX/5cf6cf85b428e6ca1521e193104fcebf

In the video you can see that it should be collapsed but form is not getting updated.
Gist
gist:c5b730ccec35b98e02f13b8432ca1e64
GitHub Gist: instantly share code, notes, and snippets.
gist:c5b730ccec35b98e02f13b8432ca1e64
Gist
gist:275a1d39917508775a0cfa437c2f7f93
GitHub Gist: instantly share code, notes, and snippets.
gist:275a1d39917508775a0cfa437c2f7f93
Gist
gist:7fc1df22ea4d2836c5c78d2597e29a65
GitHub Gist: instantly share code, notes, and snippets.
gist:7fc1df22ea4d2836c5c78d2597e29a65
Gist
gist:5cf6cf85b428e6ca1521e193104fcebf
GitHub Gist: instantly share code, notes, and snippets.
gist:5cf6cf85b428e6ca1521e193104fcebf
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Section Collapse
FilamentFFilament / ❓┊help
3y ago
collapse form section on submit
FilamentFFilament / ❓┊help
2y ago
Collapse section on 'sm' viewport
FilamentFFilament / ❓┊help
3y ago
Remember section collapse position
FilamentFFilament / ❓┊help
3y ago