Update src/components/block/index.ts

Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
This commit is contained in:
Betty Steger 2023-12-05 18:43:49 +01:00 committed by GitHub
parent ceed696332
commit 4da1021f34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
});
});