Block editor: content resets to the previous state in “Edit as HTML” by clicking somewhere outside of the editing window

Block editor: content resets to the previous state in “Edit as HTML” by clicking somewhere outside of the editing window