Skip to content

Commit 3e008d8

Browse files
fix(suggest): input clear on multiple selection
1 parent 31be57e commit 3e008d8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

projects/angular/components/ui-suggest/src/ui-suggest.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1221,7 +1221,9 @@ export class UiSuggestComponent extends UiSuggestMatFormFieldDirective
12211221
if (!this.multiple) {
12221222
this._clearSelection();
12231223
} else if (!this.compact) {
1224-
this.inputControl.setValue('');
1224+
if (this.inputControl.value) {
1225+
this.inputControl.setValue('');
1226+
}
12251227
this._focusChipInput();
12261228
}
12271229
this._pushEntry(value);

0 commit comments

Comments
 (0)