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

Min/Max treating null or undefined as zero #33

Open
thaoula opened this issue Dec 20, 2016 · 0 comments
Open

Min/Max treating null or undefined as zero #33

thaoula opened this issue Dec 20, 2016 · 0 comments

Comments

@thaoula
Copy link

thaoula commented Dec 20, 2016

Hi,

I am required to build a form dynamically using data from a json file.

I am using template driven forms and setting the Min and Max values based on the data in the json file.

If values for Min or Max are not provided the validators activate and treat the value as zero.

Is it possible for the Min/Max validators to ignore null or undefined values. In other words, do not try and validate.

Regards,
Tarek

yuyang041060120 pushed a commit that referenced this issue Feb 16, 2017
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