We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8950ec3 commit a5f4926Copy full SHA for a5f4926
src/components-examples/material/chips/chips-autocomplete/chips-autocomplete-example.html
@@ -21,7 +21,8 @@
21
[matChipInputSeparatorKeyCodes]="separatorKeysCodes"
22
(matChipInputTokenEnd)="add($event)"
23
/>
24
- <mat-autocomplete #auto="matAutocomplete" (optionSelected)="selected($event)">
+ <!-- Clear input value after a selection is made -->
25
+ <mat-autocomplete #auto="matAutocomplete" (optionSelected)="selected($event); fruitInput.value = ''">
26
@for (fruit of filteredFruits(); track fruit) {
27
<mat-option [value]="fruit">{{fruit}}</mat-option>
28
}
0 commit comments