Skip to content

Commit

Permalink
Merge pull request #11545 from cetincakiroglu/issue-11503
Browse files Browse the repository at this point in the history
Fixed #11503 - Dropdown | red border stays after form reset
  • Loading branch information
cetincakiroglu authored Jun 6, 2022
2 parents f32cd59 + 0fda766 commit 95980f8
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 95980f8

Please sign in to comment.