Skip to content

Prompt breaks back button in iOS Safari #1699

@Trying2KnowMyself

Description

@Trying2KnowMyself
  1. Add a <Prompt message="something" when={true} /> to a page in inferno-router-demo and run it
  2. Access the demo using Safari from a device running iOS (tested with several versions, including 26.5)
  3. Navigate to the appropriate page using the links
  4. Navigate from the appropriate page using the links
  5. Observe the prompt, accept it
  6. Navigate to the page again
  7. Attempt to navigate away from the page using the back button in the browser

Expected:

Prompt

If no prompt, navigation is not blocked

Actual:

No prompt, navigation is blocked

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions