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

Fields needs at least one validator as part of the schema before the "required" is checked #680

Open
1 of 3 tasks
carnun opened this issue Jun 19, 2020 · 0 comments
Open
1 of 3 tasks

Comments

@carnun
Copy link

carnun commented Jun 19, 2020

Note: for support questions, please use stackoverflow. This repository's issues are reserved for feature requests and bug reports.

  • I'm submitting a ...
    • bug report
    • feature request
    • support request => Please do not submit support request here, see note at the top of this template.
  • Do you want to request a feature or report a bug?

Bug report

  • What is the current behavior?

When I make radio buttons required in the form schema and validate the field then the validation succeeds even if none of the radio options have been selected. On the other hand if I add any validator then the required check is triggered.

Take a look at https://jsfiddle.net/r2ysqn64/2/
1 Click on the "Validate" button
2 The first radio does not show a required error
3. The second radio (which has a required validation) shows a required error message
4. The third radio (which has a string validation) shows a required error message

  • What is the expected behavior?

I would expect the required to not to need an additional validator.

  • Please tell us about your environment:

    • Version: [email protected]
    • Browser: Checked on Vivaldi, Chrome and Firefox
    • Language: all
@carnun carnun changed the title Radio field (and maybe others) need a validator as part of the schema before the "required" validation is checked Fields needs at least one validator as part of the schema before the "required is checked Jun 19, 2020
@carnun carnun changed the title Fields needs at least one validator as part of the schema before the "required is checked Fields needs at least one validator as part of the schema before the "required" is checked Jun 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant