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

Provide API to opt-out of on-blur validation for input elements #354

Open
Shridhad opened this issue Aug 5, 2019 · 1 comment
Open

Provide API to opt-out of on-blur validation for input elements #354

Shridhad opened this issue Aug 5, 2019 · 1 comment
Labels
enhancement New feature or request validation

Comments

@Shridhad
Copy link

Shridhad commented Aug 5, 2019

Currently the validation for input elements triggers on blur event. It would be great to have a way to opt-out of this automatic validation.

<vaadin-text-field required 
          error-message="Please enter value" 
          value="{{value}}">
</vaadin-text-field>

Scenario:
On vaadin.com we have tabbed layout for Login and Signup dialog. The username field inside the tabs are auto focused. When user switches the tab, the blur event triggers for focused element, resulting into automatic validation, and showing the error message. I would like this automatic validation not to trigger, instead I would user .validate() method on the field on submission of form.

@Shridhad Shridhad changed the title Provide API to opt-out of on-blur validation on input elements Provide API to opt-out of on-blur validation for input elements Aug 5, 2019
@jouni
Copy link
Member

jouni commented Feb 28, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request validation
Projects
None yet
Development

No branches or pull requests

4 participants