From f0d1bf18b98c78e193c102833e441eb72c12ca29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20=C3=87etin?= <92744169+mehmetcetin01140@users.noreply.github.com> Date: Mon, 26 Feb 2024 15:38:01 +0300 Subject: [PATCH] Fixed #14832 - Dropdown | attr aria-expanded missing because undefined value --- 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 { -
+