joseluisq / vue-input-number

A custom input number component for Vue.js 2

Home Page:http://cdpn.io/gGVRBP/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

goors opened this issue · comments

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.

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.