You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(material/chips): add only active autocomplete option on selection (#32208)
* fix(material/chips): add only active autocomplete option on selection
close#32204, #13574
* docs(material/chips): add only active autocomplete option on selection
close#32204, #13574
(cherry picked from commit 943e1e3)
Copy file name to clipboardExpand all lines: src/material/chips/chips.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,6 +65,9 @@ Users can press delete to remove a chip. Pressing delete triggers the `removed`
65
65
66
66
A `<mat-chip-grid>` can be combined with `<mat-autocomplete>` to enable free-form chip input with suggestions.
67
67
68
+
> _Please note: when using `MatChipsModule` together with `MatAutocompleteModule`, the order in which modules are imported matters._
69
+
> _To ensure correct behavior (e.g., preventing adding typed text when autocomplete option is selected via keyboard), make sure to import `MatAutocompleteModule` before `MatChipsModule`._
70
+
68
71
<!-- example(chips-autocomplete) -->
69
72
70
73
### Icons
@@ -141,7 +144,7 @@ The chips components support 3 user interaction patterns, each with its own cont
141
144
142
145
`<mat-chip-grid>` and `<mat-chip-row>` : These elements implement a grid accessibility pattern. Use them as part of a free form input that allows users to enter text to add chips.
143
146
144
-
Note : be sure to have the input element be a sibling of mat-chip-grid to ensure accessibility of the input element by accessibility devices such as Voice Control. It is also recommended to apply an appropriate `aria-label` to the input to optimize accessibility of the input.
147
+
> _Please note: be sure to have the input element be a sibling of `mat-chip-grid` to ensure accessibility of the input element by accessibility devices such as Voice Control. It is also recommended to apply an appropriate `aria-label` to the input to optimize accessibility of the input._
0 commit comments