Clear highlights and pointer on BlockManager even if selection was inside of the editor before clicking outside

This commit is contained in:
Kanstantsin_Vikhor 2024-02-29 15:18:04 +04:00
parent e9b4c30407
commit 1701bcb356

View file

@ -620,7 +620,7 @@ export default class UI extends Module<UINodes> {
* Do not fire check on clicks at the Inline Toolbar buttons
*/
const target = event.target as HTMLElement;
const clickedInsideOfEditor = this.nodes.holder.contains(target) || Selection.isAtEditor;
const clickedInsideOfEditor = this.nodes.holder.contains(target);
if (!clickedInsideOfEditor) {
/**