From 0d7e9591fb48366490c39923903d41405954a7a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denny=20M=C3=BCller?= Date: Thu, 11 May 2023 14:51:45 +0200 Subject: [PATCH] fix: #13026 clear working properly in single mode --- src/app/components/autocomplete/autocomplete.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/components/autocomplete/autocomplete.ts b/src/app/components/autocomplete/autocomplete.ts index 86ac51c9c0c..b27b65a0992 100755 --- a/src/app/components/autocomplete/autocomplete.ts +++ b/src/app/components/autocomplete/autocomplete.ts @@ -717,10 +717,11 @@ export class AutoComplete implements AfterViewChecked, AfterContentInit, OnDestr } clear() { + this.value = null; + this.inputValue = null; if (this.multiple) { - this.value = null; + this.multiInputEL.nativeElement.value = ''; } else { - this.inputValue = null; this.inputEL.nativeElement.value = ''; }