F
Filament3mo ago
tg

Determine if form is in modal inside a configureUsing closure?

Is there a way to determine inside the Forms\Component\Tabs::configureUsing closure if the Tabs component is rendered inside an action modal container? Context I've enabled Forms\Components\Tabs::persistTabInQueryString() (docs) globally through a Tabs::configureUsing closure. This works as expected on resource pages. However, some of my forms with tabs also appear inside action modals. The tab persistence works there as well, but does not make sense as the modal state itself is not persisted across browser tabs – which is expected behavior. While it does not break my app right now, I guess it will introduce conflicts sooner or later when a tab on the page has the same name as a tab inside the modal. Definitely the case once I open a resource form inside a modal on top of a resource page that has the same resource type.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server