Vaadin Flow Validation Error Disappears

Hi To All ,

i have a emailfield and i need to validate it mail adress with certain domain. i did what tutorial said.

binder.forField(emailField)
.withValidator(new EmailValidator(
“This doesn’t look like a valid email address”))
.withValidator(
email → email.endsWith(“@acme.com”),
“Only acme.com email addresses are allowed”)
.bind(Person::getEmail, Person::setEmail);

My problem is error label actually says “Only acme.com email addresses are allowed” but only for a sec. and then it disappears.so user may think he/she entered the right mail format but he/she doesnt. So …

how can i show that error label again ? i have no issue with EmailValidator it stays until u enter something like an email.

best regards to all
-umit.