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

using 'lessThan' rule in conjunction with 'max' supresses 'max' validation #2263

Open
levi2ki opened this issue Dec 28, 2024 · 0 comments
Open

Comments

@levi2ki
Copy link

levi2ki commented Dec 28, 2024

Describe the bug
When using lessThan rule in conjunction with max rule and they both failed, only lessThan error will be thrown and max error will be omitted despite { abortEarly: false }

To Reproduce
https://codesandbox.io/p/sandbox/yup-test-case-gg1g1

Expected behavior
Expected to receive both errors within validation 'from' attribute

Platform (please complete the following information):

  • Browser chrome
  • Version 131.0.6778.205

Additional context
I checked some combinations like:

  1. lessThan and min - green test - both errors received
  2. moreThan and max - green test - both errors received
  3. moreThan and min - green test - both errors received
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