diff --git a/docs/fundamentals/systems/overlays/assets/demo-el-using-overlaymixin.mjs b/docs/fundamentals/systems/overlays/assets/demo-el-using-overlaymixin.mjs index 1fe27566a..9d92fc6ed 100644 --- a/docs/fundamentals/systems/overlays/assets/demo-el-using-overlaymixin.mjs +++ b/docs/fundamentals/systems/overlays/assets/demo-el-using-overlaymixin.mjs @@ -15,22 +15,6 @@ class DemoElUsingOverlayMixin extends OverlayMixin(LitElement) { }); } - _setupOpenCloseListeners() { - super._setupOpenCloseListeners(); - - if (this._overlayInvokerNode) { - this._overlayInvokerNode.addEventListener('click', this.toggle); - } - } - - _teardownOpenCloseListeners() { - super._teardownOpenCloseListeners(); - - if (this._overlayInvokerNode) { - this._overlayInvokerNode.removeEventListener('click', this.toggle); - } - } - render() { return html` diff --git a/docs/fundamentals/systems/overlays/configuration.md b/docs/fundamentals/systems/overlays/configuration.md index ff11034fc..9c7880efd 100644 --- a/docs/fundamentals/systems/overlays/configuration.md +++ b/docs/fundamentals/systems/overlays/configuration.md @@ -20,7 +20,7 @@ or in the `overlays` container at the bottom of the ``. ```js preview-story export const placementLocal = () => { - const placementModeLocalConfig = { placementMode: 'local' }; + const placementModeLocalConfig = { ...withDropdownConfig() }; return html`