diff --git a/packages/lexical-playground/src/plugins/CollapsiblePlugin/CollapsibleContainerNode.ts b/packages/lexical-playground/src/plugins/CollapsiblePlugin/CollapsibleContainerNode.ts index 74b8ea6ab06..fe5bf59d606 100644 --- a/packages/lexical-playground/src/plugins/CollapsiblePlugin/CollapsibleContainerNode.ts +++ b/packages/lexical-playground/src/plugins/CollapsiblePlugin/CollapsibleContainerNode.ts @@ -100,7 +100,7 @@ export class CollapsibleContainerNode extends ElementNode { } exportDOM(): DOMExportOutput { - const element = document.createElement('div'); + const element = document.createElement('details'); element.classList.add('Collapsible__container'); element.setAttribute('open', this.__open.toString()); return {element};