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

Firing validations only when some DOM event type occurs #33

Open
nasdan opened this issue Sep 4, 2019 · 0 comments
Open

Firing validations only when some DOM event type occurs #33

nasdan opened this issue Sep 4, 2019 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@nasdan
Copy link
Member

nasdan commented Sep 4, 2019

We would like to consume navite DOM event types and it only fires desired validations on that events.

Somethink like:

const validationSchema: ValidationSchema = {
  field: {
    login: [
      // fire validation only for change and blur events
      { validator: Validators.required.validator, events: ['change', 'blur'] }
    ],
    password: [
      // Fire validations for any event
      { validator: Validators.required.validator }
    ],
  }
}

DOM typings: search GlobalEventHandlersEventMap inside file.

@nasdan nasdan added the enhancement New feature or request label Sep 4, 2019
@nasdan nasdan added this to the 1.1 milestone Sep 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant