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 { -