Skip to content

Commit 00515ad

Browse files
authored
docs: clear input field whenever a selection is (#30396)
made in chips autocomplete example fixes #30339
1 parent 9e1ee2f commit 00515ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components-examples/material/chips/chips-autocomplete/chips-autocomplete-example.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
[matChipInputSeparatorKeyCodes]="separatorKeysCodes"
2222
(matChipInputTokenEnd)="add($event)"
2323
/>
24-
<mat-autocomplete #auto="matAutocomplete" (optionSelected)="selected($event)">
24+
<mat-autocomplete #auto="matAutocomplete" (optionSelected)="selected($event); fruitInput.value = ''">
2525
@for (fruit of filteredFruits(); track fruit) {
2626
<mat-option [value]="fruit">{{fruit}}</mat-option>
2727
}

0 commit comments

Comments
 (0)