Skip to content

Commit

Permalink
Fixed #14753 - Dropdown | Selected option is not displaying correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetcetin01140 committed Feb 8, 2024
1 parent 4e6110e commit a6fcece
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/components/dropdown/dropdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1093,7 +1093,9 @@ export class Dropdown implements OnInit, AfterViewInit, AfterContentInit, AfterV
this.updateModel(value, event);
this.focusedOptionIndex.set(this.findSelectedOptionIndex());
isHide && setTimeout(() => this.hide(true), 1);
preventChange === false && this.onChange.emit({ originalEvent: event, value: value });
setTimeout(() => {
preventChange === false && this.onChange.emit({ originalEvent: event, value: value });
});
}

onOptionMouseEnter(event, index) {
Expand Down

0 comments on commit a6fcece

Please sign in to comment.