Skip to content

Modal persists if hardware back button is pressed #24

@AlexZ-343

Description

@AlexZ-343

Hi,

I've created a modal setup using this library. It's been working great, but when I press the browser back button, the modal persists. I would like it to be inactive again if I press the back button.

After searching, I did come across this useful answer on using the query param. I was wondering if there was a a way to translate this behavior to this library. For my current use case, I would like to provide a one-time code to the modal, and that code should go away if I press the browser back button or refresh the page (it works for the latter, but not the former).

Please let me know if there's a way to do so, or if it's something that you would be able to develop in the future.

Metadata

Metadata

Assignees

Labels

good first issueGood for newcomersproblem-solvingsolving problems that arise in using the package

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions