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
Chrome browsers are bubbling up multiple popstate events, which causes the confirmLeave prompt box to show display twice when using the back/forward buttons.
The first time it's shown the dialog is passed an object with the page's location information, so the message is [Object object], the second dialog is the correct one generated by confirmLeave
This issue is caused because the DOMUtils don't anticipate this extra event in Chrome except on iOS. Changing this function to return true when the event state is undefined resolved this issue.
The text was updated successfully, but these errors were encountered:
Chrome browsers are bubbling up multiple
popstate
events, which causes theconfirmLeave
prompt box to show display twice when using the back/forward buttons.The first time it's shown the dialog is passed an object with the page's location information, so the message is
[Object object]
, the second dialog is the correct one generated byconfirmLeave
This issue is caused because the
DOMUtils
don't anticipate this extra event in Chrome except on iOS. Changing this function to return true when the event state is undefined resolved this issue.The text was updated successfully, but these errors were encountered: