Skip to content

Commit

Permalink
Fixed #11503 - Dropdown | red border stays after form reset
Browse files Browse the repository at this point in the history
  • Loading branch information
cetincakiroglu committed May 23, 2022
1 parent eb412bd commit 0fda766
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/dropdown/dropdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 0fda766

Please sign in to comment.