Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested Modals and wire:navigate issue #368

Closed
medanigmbh opened this issue Oct 9, 2023 · 3 comments
Closed

Nested Modals and wire:navigate issue #368

medanigmbh opened this issue Oct 9, 2023 · 3 comments

Comments

@medanigmbh
Copy link

Opening a modal and a nested one and returning back to the first modal does work fine.
But if we navigate through the app (with wire:navigate on the links) and open a modal and a nested one and want to return back we get an empty modal instead. So just a blurred screen with no way out.
If we remove wire:navigate from the links everything works fine again.

Is there any way to use modals and other component with wire:navigate. We just bought it and it says it works with livewire v3 but in this case it does not work as intended

@PhiloNL
Copy link
Contributor

PhiloNL commented Oct 10, 2023

Hi @medanigmbh,
Thanks for reporting.
I'll look into this. Unfortunately wire:navigate can still cause some issues, issues are still being reported on the Livewire discussion board and improvements are made every release.

So to reproduce this issue, I understand the following causes the issue right?

  • Open a modal and nested modal.
  • Close both modals.
  • Navigate to a new page using wire:navigate
  • Open a new modal and a nested modal.

From this point on it breaks, correct?

@medanigmbh
Copy link
Author

Hello PhiloNL,
Thanks for answer.

To reproduce the error, you just need the following:

  • click a link with wire:navigate for the desired page
  • open a modal (which has a child modal)
  • open the child modal inside the modal
  • click close on the child modal

now you should be left with an empty modal and a blurred screen.

It does not matter if you open a modal before or not.

@PhiloNL
Copy link
Contributor

PhiloNL commented Dec 8, 2023

Hello @medanigmbh,
Thanks for your patience.
I've updated both this and the pro which should now play nice with wire:navigate.
Thanks for reporting the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants