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

Type="number" input field min/max length validator broken #8292

Closed
mZbZ opened this issue Jul 22, 2014 · 1 comment
Closed

Type="number" input field min/max length validator broken #8292

mZbZ opened this issue Jul 22, 2014 · 1 comment

Comments

@mZbZ
Copy link

mZbZ commented Jul 22, 2014

Input field of type "number" break the min/max length validators. The issue was present in both 1.3.0-beta.15 and 1.3.0-beta.16 on both firefox and chrome.

Compare here against type="text" behaviour, Plunker

Adding a toString() call to the input value before comparison in the minLengthDirective and maxLengthDirective methods fixed the issue for me.

@caitp
Copy link
Contributor

caitp commented Jul 22, 2014

This is a duplicate of #7967 (and possibly others) -- I'm going to close this issue so that the conversation can be carried on over there, alright?

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

No branches or pull requests

2 participants