Replies: 1 comment
-
There are a few questions that need answering here:
You could wire the UI control in charge of closing the modal to the The issue being that in case 1.a, closing the modal will go back to the URL the user was on before landing in your app. You could detect this using a local React state (or the absence thereof) when you open the modal from within your app. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using this modal and acts as a new page, but the downside on mobile view is that when the back button on mobile is clicked, it goes back to the previous page instead of exiting the modal.
So, what happens is, I set the history to "push" and it works well, but the downside is that when the modal is closed, the pushed URL remains. Consequently, when clicking the back button, it takes two clicks to go back to the previous page.
It would be nice to have an option to pop the history. something like this.
Beta Was this translation helpful? Give feedback.
All reactions