Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

Decimal issue, not all countries are using "." for decimal #5

Open
goors opened this issue May 10, 2018 · 1 comment
Open

Decimal issue, not all countries are using "." for decimal #5

goors opened this issue May 10, 2018 · 1 comment

Comments

@goors
Copy link

goors commented May 10, 2018

What about for example "4,6" instead of "4.6". Also a problem with length. If you want to have a decimal number and say like this:

min = 1
max = 300
length = 4

and then type in 400 it is only changed to max when you do blur, and second if you want a number with three digits and dot you have to put in length 4 because "." is also taken into consideration.

Like some big bugs. You should look into that.

@joseluisq
Copy link
Owner

joseluisq commented May 11, 2018

Sure, but Javascript uses dots for decimals. That implies to using some something to replace it with some comma. Nonetheless, this issue could be a new feature.

For max/length, we can considerate something like: if max exceed the length value then length must assume the max length.

PRs welcome.

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