© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
3 replies
Mark Chaney

Close Modal "hook"

I have quite a few different actions on different pages that open a modal to view or edit a record. Im working on a solution to have a share action that will copy the current records url (querystring) to the users clipboard and while Ive definitely launched modal using a url, ive always found it to be a pain to remove that querystring when the use closes the modal by clicking away, etc. Any suggestions for creating a solution that works in most situations for when a modal might close (submit, close, cancel, escape, navigate away, etc) for removing that query string reference? Though as i typed this out though, i am wondering if I should remove that querystring parameter after the modal is launched in the first place.
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Close modal manually
FilamentFFilament / ❓┊help
3y ago
Custom close modal button
FilamentFFilament / ❓┊help
2y ago
Modal: Disable esc to close a Modal
FilamentFFilament / ❓┊help
2y ago
Close Modal From Child & Parent
FilamentFFilament / ❓┊help
5mo ago