From 0091a888bcfcc6d32015d4a9091e48c7bb7fa28f Mon Sep 17 00:00:00 2001 From: Joseph Garrone Date: Wed, 24 Jul 2024 16:59:54 +0200 Subject: [PATCH] #594 --- src/login/UserProfileFormFields.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/login/UserProfileFormFields.tsx b/src/login/UserProfileFormFields.tsx index 9e9e54b6..9fdc1f07 100644 --- a/src/login/UserProfileFormFields.tsx +++ b/src/login/UserProfileFormFields.tsx @@ -277,6 +277,8 @@ function PasswordWrapper(props: { kcClsx: KcClsx; i18n: I18n; passwordInputId: s function InputTag(props: InputFieldByTypeProps & { fieldIndex: number | undefined }) { const { attribute, fieldIndex, kcClsx, dispatchFormAction, valueOrValues, i18n, displayableErrors } = props; + const { advancedMsgStr } = i18n; + return ( <> error.fieldIndex === fieldIndex) !== undefined} disabled={attribute.readOnly} autoComplete={attribute.autocomplete} - placeholder={attribute.annotations.inputTypePlaceholder} + placeholder={ + attribute.annotations.inputTypePlaceholder === undefined ? undefined : advancedMsgStr(attribute.annotations.inputTypePlaceholder) + } pattern={attribute.annotations.inputTypePattern} size={attribute.annotations.inputTypeSize === undefined ? undefined : parseInt(`${attribute.annotations.inputTypeSize}`)} maxLength={