Almost done with UserProfileFormField.tsx
This commit is contained in:
parent
7d8db7f48c
commit
aab1b7d490
@ -548,6 +548,13 @@ export type Attribute = {
|
||||
inputTypeRows?: `${number}`;
|
||||
inputTypeMaxlength?: `${number}`;
|
||||
inputHelperTextBefore?: string;
|
||||
inputHelperTextAfter?: string;
|
||||
inputTypePlaceholder?: string;
|
||||
inputTypePattern?: string;
|
||||
inputTypeMinlength?: `${number}`;
|
||||
inputTypeMax?: string;
|
||||
inputTypeMin?: string;
|
||||
inputTypeStep?: string;
|
||||
};
|
||||
multivalued?: boolean;
|
||||
autocomplete?:
|
||||
|
@ -405,7 +405,8 @@ function InputTag(props: PropsOfInputFiledByType & { fieldIndex: number | undefi
|
||||
max={attribute.annotations.inputTypeMax}
|
||||
min={attribute.annotations.inputTypeMin}
|
||||
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 =>
|
||||
formValidationDispatch({
|
||||
"action": "update",
|
||||
|
Loading…
x
Reference in New Issue
Block a user