Hi,
I’m starting to use this component but I have a strange result.
As you can see in the attached image I always have 10 box to validate the password.
This is my code
Div text = new Div();
PasswordStrength passwordStrength = new PasswordStrength();
passwordStrength.setStrength(0);
PasswordField passwordField = new PasswordField();
passwordField.setLabel("Type your new password");
passwordField.setValueChangeMode(ValueChangeMode.EAGER);
passwordField.addValueChangeListener(changeEvent -> {
passwordStrength.setStrength(changeEvent.getValue().length() / 3);
});
text.add(passwordField, passwordStrength);
How I can set only 5 element for password validation? Is there something that I can do to fix it or is it a bug?
Thanks
Gianluca