Commit f1e82da
authored
fix(material/list): indexOf usage incorreect for active focus reset (#28531)
The buggy logic was using a truthiness check for checking for presence
in a list, but this check needed to compare against -1 instead. This
corrects a mismanagement of tabIndex on the items in the selection
list: if the list of items changed, the selection list could not
be tab selected until the selection list was mouse-focused.1 parent a3b28df commit f1e82da
2 files changed
+16
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1319 | 1319 | | |
1320 | 1320 | | |
1321 | 1321 | | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
1322 | 1337 | | |
1323 | 1338 | | |
1324 | 1339 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
429 | 429 | | |
430 | 430 | | |
431 | 431 | | |
432 | | - | |
| 432 | + | |
433 | 433 | | |
434 | 434 | | |
435 | 435 | | |
| |||
0 commit comments