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

Input of type='number' does not accept validate.min: 0 and validate.max: 0 #130

Closed
DavideTrendstudio opened this issue Mar 14, 2017 · 1 comment

Comments

@DavideTrendstudio
Copy link

Setting the validate.min value to 0 does not work. The attribute 'min' does not appear in the html tag.

Example:
name: field
label: 'example field'
placeholder: 1
type: number
validate: { required: true, min: 0, max: 10 }

Setting 'min' to any other value works perfectly.

The same happens with 'validate.max: 0'.

@rhukster
Copy link
Member

Hmm I think the 0 is being treated as false. Will check.

rhukster added a commit that referenced this issue Mar 14, 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

2 participants