You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to do a "greater than 0" validation with this library? I tried RxwebValidators.minNumber({ value: 0 }), but it allows 0. And the greaterThanvalidator only accepts fields rather than static values. I can't use RxwebValidators.minNumber({ value: 1 }) because I want all of the decimal values between 0 and 1 to be valid.
The expected solution you would like
Add an option to the minNumber validator to make the comparison a minValue > formControl.value instead of minValue >= formControl.value. Even the documentation uses "greater than" terminology incorrectly to describe current behaviour.
Package version
@rxweb/reactive-form-validators: 2.1.6
The text was updated successfully, but these errors were encountered:
Describe the problem statement?
How to do a "greater than 0" validation with this library? I tried
RxwebValidators.minNumber({ value: 0 })
, but it allows 0. And thegreaterThan
validator only accepts fields rather than static values. I can't useRxwebValidators.minNumber({ value: 1 })
because I want all of the decimal values between 0 and 1 to be valid.The expected solution you would like
Add an option to the
minNumber
validator to make the comparison aminValue > formControl.value
instead ofminValue >= formControl.value
. Even the documentation uses "greater than" terminology incorrectly to describe current behaviour.Package version
@rxweb/reactive-form-validators: 2.1.6
The text was updated successfully, but these errors were encountered: