Wizard: Fix password placeholder

User password gets redacted from a blueprint, meaning if there was any password set, it does not render on import.

Previously a placeholder was rendered as a value of password, making the value not editable. This renders the password indication as a placeholder text, solving the issue.
This commit is contained in:
regexowl 2025-05-12 10:12:06 +02:00 committed by Klara Simickova
parent c9a13aede8
commit 18ab2ddb2e

View file

@ -54,10 +54,10 @@ export const PasswordValidatedInput = ({
<TextInput
isRequired
type={isPasswordVisible ? 'text' : 'password'}
value={hasPassword ? '•'.repeat(8) : value}
value={value}
onChange={onChange}
aria-label={ariaLabel}
placeholder={placeholder}
placeholder={hasPassword ? '●'.repeat(8) : placeholder}
/>
</InputGroupItem>
<InputGroupItem>