Skip to content

Commit 6d61fba

Browse files
authored
Render flyout properly when showing search modal (#606)
[Peek 2025-06-23 17-24.webm](https://github.com/user-attachments/assets/ea46c485-b825-4b2d-b5bc-bce42bb910dd) Closes #585
1 parent bc62388 commit 6d61fba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/flyout.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,9 @@ export class FlyoutElement extends LitElement {
165165
// Dispatch the custom event the search addon is listening to show the modal
166166
const searchEvent = new CustomEvent(EVENT_READTHEDOCS_SEARCH_SHOW);
167167
document.dispatchEvent(searchEvent);
168+
169+
// Close the flyout after showing the search modal
170+
this._close();
168171
}
169172

170173
renderSearch() {

0 commit comments

Comments
 (0)