I have a text field where I want a numerical input. I set keyboardType to KeyboardType.Number. But what I see is that I can type multiple decimals as well as commas in the TextField. Will I have to do all this validation myself?
Also, I saw that when I press and hold the delete button it only deletes one digits and doesn't start deleting the remaining digits? Is this intentional or a bug?
z
Zach Klippenstein (he/him) [MOD]
11/01/2021, 5:02 PM
Keyboard type only gives a hint to the IME about what keys to show, it doesn't do any validation or anything, and different keyboards may handle it differently (or not at all).