mirror of
https://github.com/codex-team/editor.js
synced 2024-06-09 09:22:16 +02:00
Update src/components/block/index.ts
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
This commit is contained in:
parent
7e8c8a32ef
commit
7a6a6f58d5
|
@ -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