Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

input[number] throws required-validation-error instead of number-validation-error #6955

Closed
donaldpipowitch opened this issue Apr 2, 2014 · 2 comments

Comments

@donaldpipowitch
Copy link

Example straight from the docs: http://plnkr.co/edit/ngdoc:example-number-input-directive@snapshot?p=preview

If you write a into the input[number] it shows {"required":true,"number":false} instead of {"required":false,"number":true}.

Tested in Chrome 33.0.1750.152.

@caitp
Copy link
Contributor

caitp commented Apr 2, 2014

This is a known issue, there are other issues open regarding this.

We've discussed a refactoring of form validation during the meeting, in order to decouple transformation of values from validation itself. This should play a huge role in fixing this. I think Matias is working on this, or will be in the near future.

I'm going to close this for now because we don't really need another open issue about this, but feel free to continue the discussion at #6818

@caitp caitp closed this as completed Apr 2, 2014
@donaldpipowitch
Copy link
Author

Thank you.

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

No branches or pull requests

2 participants