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

Modals remain open after navigating away from host pages #2138

Open
hudson-newey opened this issue Jul 1, 2024 · 0 comments
Open

Modals remain open after navigating away from host pages #2138

hudson-newey opened this issue Jul 1, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@hudson-newey
Copy link
Member

Describe the bug
It is possible to have a modal open for a page that is no longer active by navigating back in browser history while a modal is open.

To Reproduce
Steps to reproduce the behavior:

  1. Go to ecosounds.org/projects/1134
  2. Click on "DBKD"
  3. Click on "Download Annotations" in the primary menu bar
  4. Click the "Back" arrow in your browsers navigation bar
  5. Observe that the modal is still open even when you, but you are on the "Black-throated finch" projects page

Expected behavior

The modal should close when the page location is no longer the modals host

Desktop (please complete the following information):

  • OS: Linux
  • Browser: Chrome & Firefox
  • Version: Chrome 126 & Firefox 127.0.2
@hudson-newey hudson-newey added the bug Something isn't working label Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant