This page is asking you to confirm that you want to leave
Issue Overview
Every time I navigate away from a post using Gutenberg, I get a JS alert. In Firefox, the alert says "This page is asking you to confirm that you want to leave - data you have entered may not be saved." In Chrome, the alert says "Do you want to leave this site? Changes you made may not be saved."
Steps to Reproduce (for bugs)
- Create new post
- Add content to post
- Click "Publish" or "Update"
- Click "View post" or any other link on the page I am using Gutenberg 1.6.1. This happens on multiple sites, in Firefox and Chrome. I am using Windows 10.
Expected Behavior
If I have just saved my content, I should be able to navigate away without being warned that my changes may not be saved.
Current Behavior
Every time I navigate away from a post, I get a pop-up dialog warning me that my changes may not be saved.
Possible Solution
Related Issues and/or PRs
Todos
- [ ] Tests
- [ ] Documentation
Duplicate issue: https://github.com/WordPress/gutenberg/issues/3307
Duplicate of #3296. Should be resolved in the next release.
Oh great! I searched, but couldn't find duplicates. Thanks!