Use browser-native popups to warn users of unsaved changes when refreshing. Adds a basic hook to add/remove event listeners when the component is unloaded (triggered on refresh), and if saveDisabled is false, indicating there are unsaved changes.
Issues Resolved
Makes progress on #469
Check List
[x] Commits are signed per the DCO using --signoff
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.
Description
Use browser-native popups to warn users of unsaved changes when refreshing. Adds a basic hook to add/remove event listeners when the component is unloaded (triggered on refresh), and if
saveDisabled
isfalse
, indicating there are unsaved changes.Issues Resolved
Makes progress on #469
Check List
--signoff
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. For more information on following Developer Certificate of Origin and signing off your commits, please check here.