Closed lexprom closed 2 years ago
it seems something related to the type number
on the input.
By removing type
from bind
it gets validated.
@foxhound87 you mean by removing this part field.bind({ type <--, placeholder })
?
If so, that's exactly the reason the input gets text
type and it's not reproducing
The problem is still there though 👀
Or is it expected behavior?
I see that plain input with type number and value "+32.45" as string is not working
<input type="number" value="+32.45" />
It's not even working with the value "+32" for some reason
I've faced a problem where a field is not valid if the value of it is something like this:
+32.45
- decimal with a positive sign I thought the problem was in thevalidatorjs
but it's validating these cases.Test cases:
true
true
true
false
I've created a sandbox with a form and a sandbox with only
validatorjs
.