Skip to content

Commit

Permalink
fix: Handle aria required on grouped inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel.carrera committed Sep 25, 2024
1 parent d94f176 commit 0c602a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/react/form-field/lib/FormFieldGroupInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const useFormFieldGroupInput = createElemPropsHook(useFormFieldModel)(({s
return {
'aria-invalid': state.error === 'error' ? true : undefined,
'aria-describedby': state.id ? `hint-${state.id}` : undefined,
'aria-required': state.isRequired ? true : undefined,
};
});

Expand Down

0 comments on commit 0c602a9

Please sign in to comment.