Components
← All components

Reset on Restore

stimeo--reset-on-restore

Puts a page you come back to the way it was written, so going back never lands mid-interaction.

  • Core
  • Rails / Turbo

Turbo keeps a copy of each page so it can show it again instantly when you go back. That copy also holds the open menu, the half-typed value and the notice you never dismissed, so the page you return to looks frozen part-way through something. When such a copy comes back, this puts that transient state the way the page was written. A page that is still on screen is never touched, so nothing you are typing disappears. What to put back is declared in your markup: remove these attributes, remove these classes, reset this form, put this one field back the way it was written, hide this again, remove this. One of these on the page covers everything within its scope.

running

Open the details, type a value and show the toast, then simulate a restore. Leaving this page and coming back with the Back button does the same.

Open me

This panel is open. On a restored page it is closed again.

Keyboard

This component has no keyboard interactions of its own.