diff --git a/docs/content/fsdocs-details-toggle.js b/docs/content/fsdocs-details-toggle.js index ea7075aa..b8a3f67b 100644 --- a/docs/content/fsdocs-details-toggle.js +++ b/docs/content/fsdocs-details-toggle.js @@ -10,10 +10,7 @@ export class DetailsToggle extends LitElement { constructor() { super(); this._detailsExpanded = detailsExpanded; - document.addEventListener('detailstoggled', e => { - this._detailsExpanded = !!e?.detail?.expanding; - this.render(); - }); + document.addEventListener('detailstoggled', e => this._detailsExpanded = !!e?.detail?.expanding); } static styles = css`