Skip to content

Commit

Permalink
Fixed #14917 - Dropdown | Clicking on currently selected item no long…
Browse files Browse the repository at this point in the history
…er closes the list
  • Loading branch information
mehmetcetin01140 committed Mar 1, 2024
1 parent 90830b2 commit 4b7573b
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 @@ -1120,9 +1120,9 @@ export class Dropdown implements OnInit, AfterViewInit, AfterContentInit, AfterV
const value = this.getOptionValue(option);
this.updateModel(value, event);
this.focusedOptionIndex.set(this.findSelectedOptionIndex());
isHide && setTimeout(() => this.hide(true), 1);
preventChange === false && this.onChange.emit({ originalEvent: event, value: value });
}
isHide && setTimeout(() => this.hide(true), 1);
}

onOptionMouseEnter(event, index) {
Expand Down

0 comments on commit 4b7573b

Please sign in to comment.