From f2663a3686e74ad442be5df49d9db059d0073fb1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Mehmet=20=C3=87etin?=
<92744169+mehmetcetin01140@users.noreply.github.com>
Date: Mon, 8 Jan 2024 15:24:32 +0300
Subject: [PATCH] Fixed #14322 - Dropdown | Required attribute not set in
hidden input element
---
src/app/components/dropdown/dropdown.ts | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/app/components/dropdown/dropdown.ts b/src/app/components/dropdown/dropdown.ts
index 4272b70091d..ce50e6c3567 100755
--- a/src/app/components/dropdown/dropdown.ts
+++ b/src/app/components/dropdown/dropdown.ts
@@ -145,6 +145,8 @@ export class DropdownItem {
(focus)="onInputFocus($event)"
(blur)="onInputBlur($event)"
(keydown)="onKeyDown($event)"
+ [attr.aria-required]="required"
+ [attr.required]="required"
>
{{ label() === 'p-emptylabel' ? ' ' : label() }}