How to force open numeric keypad for ion-input on mobile


#1

I wanted to force open a numeric keypad for ion-input on mobile web. I googled and found options only for input tag. Please help.


#2

If you want to open for number, just specify the type=“number” or if you want a telephone number, just specify type=“tel”. Here is the code for both of them. It works for me:

<ion-input type="tel" placeholder="Phone"></ion-input>
<ion-input type="number" placeholder="Number"></ion-input>

Hope it’ll help.
Cheers!!!