Closing an editor with a dirty state focuses wrong button #11091
Labels
Priority:p2-high
Escalation, on top of current planning, release blocker
Type:Bug
Something isn't working
Describe the bug
Closing an editor with a dirty state (unsaved changes) will show a modal, asking the user if they want to save or leave without saving the document. The modal currently focuses the "Don't save" button initially, which is suboptimal since one single keypress might discard all the changes.
Steps to reproduce
Expected behavior
The document should be saved and closed.
Actual behavior
The document is not being saved.
Note that we can only fix this for our own modal which shows when e.g. hitting the "back"-button in the browser or when closing the editor via the app bar. Closing the browser tab/window creates a browser popup which we can't control.
The text was updated successfully, but these errors were encountered: