You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While Chrome 119 and newer respects event.preventDefault() in beforeunload handlers, it'd be good to avoid using the API in an incorrect way and just set the value to a truthy one, e.g. 'true'.
The text was updated successfully, but these errors were encountered:
The Chrome fallback at
react-beforeunload/src/useBeforeunload.js
Line 34 in a271f7a
event.returnValue
to an empty string. However, the confirmation dialog should only be shown when the value is truthy despite Chrome not following this part of the API:https://developer.mozilla.org/en-US/docs/Web/API/Window/beforeunload_event
While Chrome 119 and newer respects
event.preventDefault()
inbeforeunload
handlers, it'd be good to avoid using the API in an incorrect way and just set the value to a truthy one, e.g.'true'
.The text was updated successfully, but these errors were encountered: