Confirm Page Refresh with Stimulus
Loosing data because of an accidental page refresh is no fun! This super-simple Stimulus controller shows a dialog before your user can refresh the page.
-
Default
Get this componentRefresh first. Then, type something and try refreshing again.
JavaScript is disabled for this preview