Skip to content

Commit

Permalink
Merge pull request #14506 from primefaces/issue-14322
Browse files Browse the repository at this point in the history
Fixed #14322 - Dropdown | Required attribute not set in hidden input …
  • Loading branch information
cetincakiroglu committed Jan 10, 2024
2 parents e07c94b + f2663a3 commit 3bd1c8a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/components/dropdown/dropdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ export class DropdownItem {
(focus)="onInputFocus($event)"
(blur)="onInputBlur($event)"
(keydown)="onKeyDown($event)"
[attr.aria-required]="required"
[attr.required]="required"
>
<ng-container *ngIf="!selectedItemTemplate; else defaultPlaceholder">{{ label() === 'p-emptylabel' ? '&nbsp;' : label() }}</ng-container>
<ng-container *ngTemplateOutlet="selectedItemTemplate; context: { $implicit: selectedOption }"></ng-container>
Expand Down

0 comments on commit 3bd1c8a

Please sign in to comment.