From 0fda7661b9e10ad1cf6091db87a3dee75f233a22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=87etin?= <69278826+cetincakiroglu@users.noreply.github.com> Date: Mon, 23 May 2022 20:06:46 +0300 Subject: [PATCH] Fixed #11503 - Dropdown | red border stays after form reset --- src/app/components/dropdown/dropdown.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/dropdown/dropdown.ts b/src/app/components/dropdown/dropdown.ts index 478accb351d..2d00cb9d30f 100755 --- a/src/app/components/dropdown/dropdown.ts +++ b/src/app/components/dropdown/dropdown.ts @@ -443,7 +443,7 @@ export class Dropdown implements OnInit,AfterViewInit,AfterContentInit,AfterView this.updateSelectedOption(this.value); this.selectedOption = this.findOption(this.value, this.optionsToDisplay); - if (!this.selectedOption) { + if (!this.selectedOption && this.value !== null) { this.value = null; this.onModelChange(this.value); }