#1699·inferno

Prompt breaks back button in iOS Safari

Author: Trying2KnowMyselfCreated May 26, 2026Updated May 27, 2026
Labelsbug to verifyRouter
  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