vue-touch-keyboard icon indicating copy to clipboard operation
vue-touch-keyboard copied to clipboard

Issue adding decimal numbers

Open martinbean opened this issue 7 years ago • 1 comments

I have a keyboard with the numeric layout. When I click “5” and then the decimal point, it clears the value and I get this message in the console:

The specified value "5." is not a valid number. The value must match to the following regular expression: -?(\d+|\d+.\d+|.\d+)([eE][-+]?\d+)?

I’ve tried finding that error message in the codebase but can’t see where it or the pattern is defined.

Therefore, could this library be updated so selecting a decimal point doesn’t trash the value and instead lets me go on to specify the number after the decimal point?

martinbean avatar May 18 '18 08:05 martinbean

I know it's been a while, but for anyone else the message will go away if you update your input to type="text".

Cycododge avatar Aug 25 '18 19:08 Cycododge