We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6018470 commit aea533fCopy full SHA for aea533f
packages/core/src/blocks/Heading/block.ts
@@ -143,7 +143,7 @@ export const createHeadingBlockSpec = createBlockSpec(
143
const dom = document.createElement(`h${block.props.level}`);
144
addDefaultPropsExternalHTML(block.props, dom);
145
146
- if ("isToggleable" in block.props && block.props.isToggleable) {
+ if (allowToggleHeadings && block.props.isToggleable) {
147
const details = document.createElement("details");
148
details.setAttribute("open", "");
149
const summary = document.createElement("summary");
0 commit comments