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={