Almost done with UserProfileFormField.tsx
This commit is contained in:
parent
7d8db7f48c
commit
aab1b7d490
@ -548,6 +548,13 @@ export type Attribute = {
|
|||||||
inputTypeRows?: `${number}`;
|
inputTypeRows?: `${number}`;
|
||||||
inputTypeMaxlength?: `${number}`;
|
inputTypeMaxlength?: `${number}`;
|
||||||
inputHelperTextBefore?: string;
|
inputHelperTextBefore?: string;
|
||||||
|
inputHelperTextAfter?: string;
|
||||||
|
inputTypePlaceholder?: string;
|
||||||
|
inputTypePattern?: string;
|
||||||
|
inputTypeMinlength?: `${number}`;
|
||||||
|
inputTypeMax?: string;
|
||||||
|
inputTypeMin?: string;
|
||||||
|
inputTypeStep?: string;
|
||||||
};
|
};
|
||||||
multivalued?: boolean;
|
multivalued?: boolean;
|
||||||
autocomplete?:
|
autocomplete?:
|
||||||
|
@ -405,7 +405,8 @@ function InputTag(props: PropsOfInputFiledByType & { fieldIndex: number | undefi
|
|||||||
max={attribute.annotations.inputTypeMax}
|
max={attribute.annotations.inputTypeMax}
|
||||||
min={attribute.annotations.inputTypeMin}
|
min={attribute.annotations.inputTypeMin}
|
||||||
step={attribute.annotations.inputTypeStep}
|
step={attribute.annotations.inputTypeStep}
|
||||||
//{...Object.fromEntries(Object.entries(props.attribute.html5DataAnnotations).map(([key, value]) => [`data-${key}`, value])}
|
// NOTE: The `?? {}` is for backward compatibility with Keycloak prior to 24
|
||||||
|
{...Object.fromEntries(Object.entries(attribute.html5DataAnnotations ?? {}).map(([key, value]) => [`data-${key}`, value]))}
|
||||||
onChange={event =>
|
onChange={event =>
|
||||||
formValidationDispatch({
|
formValidationDispatch({
|
||||||
"action": "update",
|
"action": "update",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user