-
-
Notifications
You must be signed in to change notification settings - Fork 37
Description
Environment Details
- PHP Version: 8.2.3
- Laravel Version: 12.29.0
- Inertiajs/react: Version: 2.2.6
- Inertiaui/modal-react Version: 1.0.0-beta-4
Description
Does Base Route / URL supports nested modals? It works for single level modal but not for child/parent modals.
Actual Behavior
There's a ParentModal with a url ParentURL and a base url ParentBaseURL,
When visiting the ParentURL in a browser, the ParentModal opens, so it also works correctly.
There's also a ChildModal with a url ChildURL and base url ChildBaseURL. ParentURL is the same as ChildBaseURL.
When opening the ChildModal from the ParentModal (using ModalLink), it works correctly.
However, when opening the ChildURL in a new browser tab, only the ParentModal is visible, ChildModal is not visible.
Also, when opening the ChildURL with the "open link in a new tab" (ModalLink), the ChildModal opens, but the ParentModal isn't visible. After closing the ChildModal, the ParentBaseURL appears in the browser's address bar.
Expected Behavior
When opening the ChildURL, both the ParentModal and ChildModal should be visible (ChildModal above ParentModal).