hilla
hilla copied to clipboard
React Form Binder: error message flashes on changes
After #1178, when editing a field that has an invalid length, the message flashes, see video. Screencast from 2023-08-25 16-19-24.webm
I also ran into this. Here's the model I was using:
public class Customer {
@NotBlank(message = "Name is mandatory")
private String name;
@NotBlank(message = "Email is mandatory")
@Email
private String email;
@NotBlank(message = "Phone is mandatory")
@Pattern(regexp = "^[0-9]{10}$", message = "Phone number must be 10 digits")
private String phone;
....
}
I've also run into this, with client side validators. Happens both with a custom validator, with Min and with Max.