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

validate() method is always true on first init #1167

Open
bilalmalkoc opened this issue Apr 25, 2024 · 0 comments
Open

validate() method is always true on first init #1167

bilalmalkoc opened this issue Apr 25, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@bilalmalkoc
Copy link

If form has required fields, validate() method should returns with error messages on first init. But it returns empty object.

I am trying to get form is valid or not on first load but i can not find any method to understand this. Therefore i am using validate() method but it works only if i trigger any input field on the form.

Steps to Reproduce

  1. Create a form viewer with required text field.
  2. Get errors with validate() method to understand if form is valid or not (without trigger any input)
  3. now this happens

Expected Behavior

I think validate() method should return errors on first init without trigger any input field. Or if any method exists to understand, i will use it.

Environment

  • Chrome 124
  • OS: macOS Sonoma
  • Library version: 1.8.6
@bilalmalkoc bilalmalkoc added the bug Something isn't working label Apr 25, 2024
@Skaiir Skaiir self-assigned this Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants