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

HTML5 attributes: incorrect error message. #385

Closed
monnster opened this issue Dec 13, 2013 · 1 comment
Closed

HTML5 attributes: incorrect error message. #385

monnster opened this issue Dec 13, 2013 · 1 comment
Assignees
Labels

Comments

@monnster
Copy link

Hi, i've a problem with HTML5 attributes, say min and max. When I set it to some value and try to enter incorrect numbers I get the following validation message:

Please enter a value less than or equal to [object Object].

A bit of ivestigation gets me to the validateSync function. In case validation rules are defined via code, not attributes, the ctx.params contains a number, but when the rule is defined with html5 attributes it contains the following object:

{ typeAttr: "number", value: 100 }

Which leads to the error message above.

@crissdev crissdev added the bug label Nov 15, 2014
@crissdev crissdev self-assigned this Nov 15, 2014
@crissdev
Copy link
Member

@monnster Thanks for reporting this. It seems the tests are not currently checking the error message for min and max rules when they fail. Plunk here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants