Skip to content

Commit

Permalink
Merge pull request #11635 from cetincakiroglu/issue-11634
Browse files Browse the repository at this point in the history
Fixed #11634 - Dropdown | ng-dirty issue when options are set by a set by a service call
  • Loading branch information
yigitfindikli authored Jun 23, 2022
2 parents 7b3e90e + 80e7660 commit 586ac0f
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 && this.value !== null) {
if (!this.selectedOption && ObjectUtils.isNotEmpty(this.value)) {
this.value = null;
this.onModelChange(this.value);
}
Expand Down

0 comments on commit 586ac0f

Please sign in to comment.