Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EmailField fail email validation when use with Binder #1412

Closed
aluismarte opened this issue Aug 19, 2020 · 1 comment
Closed

EmailField fail email validation when use with Binder #1412

aluismarte opened this issue Aug 19, 2020 · 1 comment

Comments

@aluismarte
Copy link

Description

When i use EmailField on a binder, never evaluate the input, always is valid.

When i debug see validation start 2 times, one tell is invalid and when the binder clear the invalid, force the email to tell everything is good.

Binder binder = new Binder<>();
EmailField email = new EmailField("Email");
binder.forField(email).bind(Demo::getEmail, Demo::setEmail);
// Add to UI

// Inputs
email.setValue("HIHI");
email.setValue("Nan");
email.setValue("email@");
email.setValue("email@hola.com");

@vaadin-bot vaadin-bot transferred this issue from vaadin/vaadin-text-field May 19, 2021
@vaadin-bot vaadin-bot transferred this issue from vaadin/web-components May 21, 2021
@TatuLund
Copy link
Contributor

TatuLund commented Feb 3, 2023

This should be fixed in Vaadin 23.3.0 when using enforceFieldValidation=true in Feature Flags.

https://vaadin.com/docs/latest/configuration/feature-flags/#experimental-features

See also: vaadin/platform#3066

Should be closed by #4264

@TatuLund TatuLund closed this as completed Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants