Commit 83b97e9
Use type-based fallback for active tab in SearchTypeMenuNarrow
SearchTypeMenuNarrow determined the active tab using only an exact
similarSearchHash match. When filters were applied, the hash changed
and no tab matched, losing the highlight on mobile. The wide menu
already handled this via useSearchTypeMenuSections' type-based
fallback. Pass query params to the hook and use activeItemIndex
so both platforms share the same fallback logic.
Co-authored-by: Bruno Rocha <brunovjk@users.noreply.github.com>1 parent cfff715 commit 83b97e9
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
78 | 84 | | |
79 | 85 | | |
80 | 86 | | |
| |||
163 | 169 | | |
164 | 170 | | |
165 | 171 | | |
| 172 | + | |
166 | 173 | | |
167 | 174 | | |
168 | 175 | | |
| |||
178 | 185 | | |
179 | 186 | | |
180 | 187 | | |
181 | | - | |
| 188 | + | |
182 | 189 | | |
183 | 190 | | |
| 191 | + | |
184 | 192 | | |
185 | 193 | | |
186 | 194 | | |
| |||
0 commit comments