Commit 71a9bbd
Fix quantity input +/- buttons decrementing under screen readers
QuantityInput.onButtonClick used event.target.name to determine which
button was pressed. When activated via screen reader/keyboard, the
event target resolves to the visually-hidden accessible-name span
inside the button (which has no name attribute) rather than the
button itself, so the plus button incorrectly fell through to
stepDown(). Mouse clicks were unaffected since they hit-test to the
button directly.
Use event.currentTarget.name instead, matching the pattern already
used in the slider's onButtonClick in the same file.
Fixes #3972
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFhzTdXdDnPmBJzysuzKuD1 parent 258f00f commit 71a9bbd
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
249 | | - | |
| 249 | + | |
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
261 | | - | |
| 261 | + | |
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
| |||
0 commit comments