Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

input type=number keyboard has dot disabled in Galaxy Tab

I know that there are many questions about that isssue already responded, but none of the solutions given has worked for me.

I'm developing a web for an enterprise that's using Samsung Galaxy Tab. There are lots of inputs which contents are decimal numbers. So I tried with <input type="number" />. But the navigator displays a keyboard with dot and comma disabled. Not only this, but onfocus, dot or comma separators are removed from the value.

I have already tried setting a step like "0,1", "0,01", "0.1", "0.01", "any", etc, tried min, max, pattern with a regex that matches decimal numbers... There are no advices in stackoverflow left to try, and this is terrible haha.

I'm using a Samsung Galaxy Tab 10.1 with default browser, but I haven't found any document talking about any limitation of it's html5 implementation. So nowadays I don't know if there is something I am missing, if there is something I can try, or if something knows that is Galaxy Tab's fault so I can do nothing for this.

Lots of thanks in advance.

like image 220
Áxel Costas Pena Avatar asked Sep 28 '12 07:09

Áxel Costas Pena


1 Answers

In android namespace you can use:

 android:inputType="numberDecimal"

Which enables you to input the "."

like image 185
CocoNess Avatar answered Sep 19 '22 08:09

CocoNess