Commit ffde59c
fix(Listbox): restore highlightOnHover behavior (#2558)
* fix(Listbox): restore highlightOnHover behavior broken by focusable guard
The pointermove handler in ListboxItem incorrectly gated highlighting on
`!focusable.value`, but focusable is always `true`, so highlightOnHover
never triggered. Add an optional `focus` parameter to `changeHighlight`
and pass `false` on hover to update the highlight without stealing DOM focus.
Fixes #2556
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* fix(Listbox): guard collection.at(-1) against undefined
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* fix(Listbox): replace .at(-1) with index-based last element access
Disable unicorn/prefer-at ESLint rule to avoid auto-revert.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* fix(Listbox): replace .at(-1) with index-based last element access
Disable e18e/prefer-array-at ESLint rule to prevent auto-revert.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* chore: revert eslint prefer-at overrides, restore .at(-1) usage
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* fix(Listbox): read focusable.value inside changeHighlight instead of as default param
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* fix(Listbox): guard collection[0] against undefined for kbd.HOME
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent a987ad5 commit ffde59c
2 files changed
Lines changed: 10 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
96 | | - | |
| 95 | + | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
| 160 | + | |
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
| 165 | + | |
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
215 | 217 | | |
216 | 218 | | |
217 | 219 | | |
| |||
309 | 311 | | |
310 | 312 | | |
311 | 313 | | |
312 | | - | |
| 314 | + | |
313 | 315 | | |
314 | | - | |
| 316 | + | |
315 | 317 | | |
316 | 318 | | |
317 | 319 | | |
| |||
0 commit comments