Skip to content

Commit

Permalink
Fixed #14322 - Dropdown | Required attribute not set in hidden input …
Browse files Browse the repository at this point in the history
…element
  • Loading branch information
mehmetcetin01140 committed Jan 8, 2024
1 parent ec65185 commit f2663a3
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 f2663a3

Please sign in to comment.