mirror of
https://github.com/codex-team/editor.js
synced 2024-06-26 17:30:48 +02:00
Clear highlights and pointer on BlockManager even if selection was inside of the editor before clicking outside
This commit is contained in:
parent
e9b4c30407
commit
1701bcb356
|
@ -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) {
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue