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() {