With https://github.com/elastic/kibana/pull/183699 we introduced a new unsaved changes prompt, but due to technical limitations we weren't able to make the default action be Keep editing and instead we had to end up having Leave page action be the main CTA. Once we are able to discern which button of the confirmation modal was clicked we can go back to this issue and fix it.
With https://github.com/elastic/kibana/pull/183699 we introduced a new unsaved changes prompt, but due to technical limitations we weren't able to make the default action be
Keep editing
and instead we had to end up havingLeave page
action be the main CTA. Once we are able to discern which button of the confirmation modal was clicked we can go back to this issue and fix it.