mirror of
https://github.com/codex-team/editor.js
synced 2024-06-01 21:42:26 +02:00
Update src/components/block/index.ts
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
This commit is contained in:
parent
ceed696332
commit
4da1021f34
|
@ -911,7 +911,7 @@ export default class Block extends EventsDispatcher<BlockEvents> {
|
|||
return false;
|
||||
}
|
||||
|
||||
return !!node.closest('[data-mutation-free="true"]');
|
||||
return node.closest('[data-mutation-free="true"]') !== null;
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue