add disabled and required to User Profile fields (#19976)
This commit is contained in:
parent
b64260bce5
commit
5c8c46c7a9
1 changed files with 4 additions and 1 deletions
|
@ -80,7 +80,10 @@ export const FormField = ({ attribute }: FormFieldProps) => {
|
||||||
) : (
|
) : (
|
||||||
<KeycloakTextInput
|
<KeycloakTextInput
|
||||||
id={attribute.name}
|
id={attribute.name}
|
||||||
{...register(fieldName(attribute.name))}
|
isDisabled={attribute.readOnly}
|
||||||
|
{...register(fieldName(attribute.name), {
|
||||||
|
required: { value: attribute.required, message: t("required") },
|
||||||
|
})}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
|
|
Loading…
Reference in a new issue