From faf79b2abcc89a9971077daa4827e5c3f8841e24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20=C3=87etin?= <92744169+mehmetcetin01140@users.noreply.github.com> Date: Tue, 27 Feb 2024 13:55:14 +0300 Subject: [PATCH] Fixed #14850 - Dropdown | aria-expanded attribute not present --- src/app/components/dropdown/dropdown.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/components/dropdown/dropdown.ts b/src/app/components/dropdown/dropdown.ts index 27a02ee16f8..643689f80db 100755 --- a/src/app/components/dropdown/dropdown.ts +++ b/src/app/components/dropdown/dropdown.ts @@ -137,7 +137,7 @@ export class DropdownItem { [attr.aria-label]="ariaLabel || (label() === 'p-emptylabel' ? undefined : label())" [attr.aria-labelledby]="ariaLabelledBy" [attr.aria-haspopup]="'listbox'" - [attr.aria-expanded]="overlayVisible" + [attr.aria-expanded]="overlayVisible ?? false" [attr.aria-controls]="id + '_list'" [attr.tabindex]="!disabled ? tabindex : -1" pAutoFocus @@ -164,7 +164,7 @@ export class DropdownItem { [disabled]="disabled" aria-haspopup="listbox" [attr.placeholder]="modelValue() === undefined || modelValue() === null ? placeholder() : undefined" - [attr.aria-expanded]="overlayVisible" + [attr.aria-expanded]="overlayVisible ?? false" (input)="onEditableInput($event)" (keydown)="onKeyDown($event)" (focus)="onInputFocus($event)" @@ -177,7 +177,7 @@ export class DropdownItem { -
+