Skip to content

Commit

Permalink
Fixed #14241 - Dropdown | Preselected value not shown when using reac…
Browse files Browse the repository at this point in the history
…tive forms
  • Loading branch information
mehmetcetin01140 committed Dec 12, 2023
1 parent cd401fa commit dda6e90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,5 +118,8 @@
}
}
}
},
"cli": {
"analytics": false
}
}
1 change: 1 addition & 0 deletions src/app/components/dropdown/dropdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -933,6 +933,7 @@ export class Dropdown implements OnInit, AfterViewInit, AfterContentInit, AfterV

if (visibleOptions && ObjectUtils.isNotEmpty(visibleOptions)) {
this.selectedOption = visibleOptions[this.findSelectedOptionIndex()];
this.cd.markForCheck()
}
});
}
Expand Down

0 comments on commit dda6e90

Please sign in to comment.