-
Notifications
You must be signed in to change notification settings - Fork 27.4k
input[type=number] doesn't respect the scientific notation #11602
Comments
Do you mean when setting on the model or in the input? |
input http://plnkr.co/edit/OFokf2VI5nOpo63kMCpT?p=preview type in the input
|
Simply change angular.js as a workaround, until it is fixed. It works for me. By the way this might already be some kind of fix. Maybe a '+' is missing, if someone wants to write e.g. 1E+12
|
@RogerJFX would you mind sending a PR with this change and a test for it? |
Ok, I can do this. Anyways one issue will remain. Current browsers can not interpret the step attribute of input[type="number"], if value is in scientific notation but not step and vice versa.
will not work as expected. |
works in chrome - converts to "normal" notation tho |
fixed in ebd0fbb |
the trick seems to be to add the decimal point. 1.0e-7 seems to work on most browsers |
Hi.
just today, I came across a weird behavior - angular's
input[type="number"]
directive doesn't see scientific number notation (like1e2
) as a valid one, despite the fact, that browsers do.is that on purpose?
The text was updated successfully, but these errors were encountered: