-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit 01209a2
fix(material/autocomplete): don't reset active option if list of options changes
Currently we reset the active option whenever the list of items changes, however this means that the user's selection could be lost while they're interacting, if some items get added to the end of the list out of view (e.g. if the options are fetched via polling).
These changes address the issue by only resetting the active option when the panel is opened.
Fixes #16608.1 parent 45fae71 commit 01209a2
File tree
3 files changed
+56
-1
lines changed- src
- material-experimental/mdc-autocomplete
- material/autocomplete
3 files changed
+56
-1
lines changedLines changed: 27 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2256 | 2256 |
| |
2257 | 2257 |
| |
2258 | 2258 |
| |
2259 | + | ||
2260 | + | ||
2261 | + | ||
2262 | + | ||
2263 | + | ||
2264 | + | ||
2265 | + | ||
2266 | + | ||
2267 | + | ||
2268 | + | ||
2269 | + | ||
2270 | + | ||
2271 | + | ||
2272 | + | ||
2273 | + | ||
2274 | + | ||
2275 | + | ||
2276 | + | ||
2277 | + | ||
2278 | + | ||
2279 | + | ||
2280 | + | ||
2281 | + | ||
2282 | + | ||
2283 | + | ||
2284 | + | ||
2259 | 2285 |
| |
2260 | 2286 |
| |
2261 | 2287 |
| |
| |||
2276 | 2302 |
| |
2277 | 2303 |
| |
2278 | 2304 |
| |
2305 | + | ||
2279 | 2306 |
| |
2280 | 2307 |
| |
2281 | 2308 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
527 | 527 |
| |
528 | 528 |
| |
529 | 529 |
| |
530 | - | ||
531 | 530 |
| |
532 | 531 |
| |
533 | 532 |
| |
| |||
539 | 538 |
| |
540 | 539 |
| |
541 | 540 |
| |
541 | + | ||
542 | 542 |
| |
543 | 543 |
| |
544 | 544 |
| |
| |||
653 | 653 |
| |
654 | 654 |
| |
655 | 655 |
| |
656 | + | ||
656 | 657 |
| |
657 | 658 |
| |
658 | 659 |
| |
|
Lines changed: 27 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2241 | 2241 |
| |
2242 | 2242 |
| |
2243 | 2243 |
| |
2244 | + | ||
2245 | + | ||
2246 | + | ||
2247 | + | ||
2248 | + | ||
2249 | + | ||
2250 | + | ||
2251 | + | ||
2252 | + | ||
2253 | + | ||
2254 | + | ||
2255 | + | ||
2256 | + | ||
2257 | + | ||
2258 | + | ||
2259 | + | ||
2260 | + | ||
2261 | + | ||
2262 | + | ||
2263 | + | ||
2264 | + | ||
2265 | + | ||
2266 | + | ||
2267 | + | ||
2268 | + | ||
2269 | + | ||
2244 | 2270 |
| |
2245 | 2271 |
| |
2246 | 2272 |
| |
| |||
2261 | 2287 |
| |
2262 | 2288 |
| |
2263 | 2289 |
| |
2290 | + | ||
2264 | 2291 |
| |
2265 | 2292 |
| |
2266 | 2293 |
| |
|
0 commit comments