Skip to content

Commit

Permalink
Fixed 15800 - Dropdown | onBlur event is emitted when the user clicks…
Browse files Browse the repository at this point in the history
… the dropdown arrow
  • Loading branch information
leonidasdel committed Jul 14, 2024
1 parent e142de6 commit 64119a6
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 @@ -191,7 +191,7 @@ export class DropdownItem {
</span>
</ng-container>
<div class="p-dropdown-trigger" role="button" aria-label="dropdown trigger" aria-haspopup="listbox" [attr.aria-expanded]="overlayVisible ?? false" [attr.data-pc-section]="'trigger'">
<div class="p-dropdown-trigger" role="button" aria-label="dropdown trigger" (mousedown)="$event.preventDefault()" aria-haspopup="listbox" [attr.aria-expanded]="overlayVisible ?? false" [attr.data-pc-section]="'trigger'">
<ng-container *ngIf="loading; else elseBlock">
<ng-container *ngIf="loadingIconTemplate">
<ng-container *ngTemplateOutlet="loadingIconTemplate"></ng-container>
Expand Down

0 comments on commit 64119a6

Please sign in to comment.