cms
cms copied to clipboard
[6.x] Ensure "cmd + s" bindings are destroyed when moving pages
This pull request fixes an issue where cmd + s keybindings weren't being destroyed/unbound properly when moving between pages.
This PR fixes it by destroying the bindings under beforeUnmount, instead of unmounted. Not entirely sure why it fixes it, but it does. 🤷♂️
How to reproduce
- Visit entry publish form
- Go to the collection's blueprint
- Trigger
cmd + s - See a console error, coming from the
savemethod in the entry publish form component.