Commit 85bcdfb
STAR-71: close search drawer when a result is clicked
The search drawer was only torn down as a side effect of a full page
reload. When a clicked result resolves to the page the user is already
on (same pathname, only the #hash differs), window.location.href does
not reload the page, so the drawer stayed open as an overlay while the
content silently scrolled behind it — making the result look
unclickable.
DrawerSearchResult now emits `closeDrawer` on click; Drawer forwards it
through the existing event chain to HeaderLayoutSearch.closeDrawer, so
the drawer closes on every navigation, reload or hash-only.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 42ad374 commit 85bcdfb
2 files changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
64 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
65 | 72 | | |
66 | 73 | | |
67 | 74 | | |
| |||
0 commit comments