From 567096570e7cfb50c01b0cfc75f164066ab51638 Mon Sep 17 00:00:00 2001 From: Manuel Kaufmann Date: Mon, 23 Jun 2025 17:23:08 +0200 Subject: [PATCH] Render flyout properly when showing search modal Closes #585 --- src/flyout.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/flyout.js b/src/flyout.js index 2a92c1e9..bf774260 100644 --- a/src/flyout.js +++ b/src/flyout.js @@ -165,6 +165,9 @@ export class FlyoutElement extends LitElement { // Dispatch the custom event the search addon is listening to show the modal const searchEvent = new CustomEvent(EVENT_READTHEDOCS_SEARCH_SHOW); document.dispatchEvent(searchEvent); + + // Close the flyout after showing the search modal + this._close(); } renderSearch() {