Commit efc0dcf
committed
fix(material/autocomplete): regression in requireSelection when options are filtered (#28119)
In #27781 the call to capture the input value was moved into the root of `_attachOverlay` in order to capture it even when there are no options. This is problematic, because `_attachOverlay` is called as the user is typing which basically breaks the `requireSelection` feature.
These changes resolve the issue while preserving the original fix by only capturing the value when the overlay is actually attached.
Fixes #28113.
(cherry picked from commit 13629b0)1 parent 0c96ee7 commit efc0dcf
File tree
2 files changed
+2
-8
lines changed- src/material/autocomplete
- tools/public_api_guard/material
2 files changed
+2
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
600 | 600 | | |
601 | 601 | | |
602 | 602 | | |
603 | | - | |
604 | 603 | | |
605 | 604 | | |
606 | 605 | | |
| |||
626 | 625 | | |
627 | 626 | | |
628 | 627 | | |
629 | | - | |
630 | | - | |
631 | | - | |
632 | | - | |
633 | | - | |
634 | 628 | | |
635 | 629 | | |
636 | 630 | | |
| |||
744 | 738 | | |
745 | 739 | | |
746 | 740 | | |
| 741 | + | |
747 | 742 | | |
748 | 743 | | |
749 | 744 | | |
| |||
753 | 748 | | |
754 | 749 | | |
755 | 750 | | |
756 | | - | |
757 | 751 | | |
758 | 752 | | |
759 | 753 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
| 193 | + | |
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| |||
0 commit comments