-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit 2fd76ac
fix(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 88631b9 commit 2fd76ac
File tree
2 files changed
+23
-1
lines changed- src/material/autocomplete
2 files changed
+23
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
511 | 511 |
| |
512 | 512 |
| |
513 | 513 |
| |
514 | - | ||
515 | 514 |
| |
516 | 515 |
| |
517 | 516 |
| |
| |||
634 | 633 |
| |
635 | 634 |
| |
636 | 635 |
| |
636 | + | ||
637 | 637 |
| |
638 | 638 |
| |
639 | 639 |
| |
|
Lines changed: 22 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1755 | 1755 |
| |
1756 | 1756 |
| |
1757 | 1757 |
| |
1758 | + | ||
1759 | + | ||
1760 | + | ||
1761 | + | ||
1762 | + | ||
1763 | + | ||
1764 | + | ||
1765 | + | ||
1766 | + | ||
1767 | + | ||
1768 | + | ||
1769 | + | ||
1770 | + | ||
1771 | + | ||
1772 | + | ||
1773 | + | ||
1774 | + | ||
1775 | + | ||
1776 | + | ||
1777 | + | ||
1778 | + | ||
1779 | + | ||
1758 | 1780 |
| |
1759 | 1781 |
| |
1760 | 1782 |
| |
|
0 commit comments