Skip to content

Commit

Permalink
Merge pull request #14920 from primefaces/issue-14917
Browse files Browse the repository at this point in the history
Fixed #14917 - Dropdown | Clicking on currently selected item no long…
  • Loading branch information
cetincakiroglu committed Mar 6, 2024
2 parents 4459194 + 8d69419 commit 6150c2c
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 @@ -1120,9 +1120,11 @@ 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 });
}
if (isHide) {
this.hide(true);
}
}

onOptionMouseEnter(event, index) {
Expand Down

0 comments on commit 6150c2c

Please sign in to comment.