katemihalikova / ion-datetime-picker

Date and/or time picker for awesome Ionic framework
MIT License
168 stars 101 forks source link

change input type to provide more suitable keyboard on mobile #42

Closed przemkow closed 8 years ago

przemkow commented 8 years ago

I've changed input type for hours, minutes and seconds. With input type number we will get proper keyboard which contains only numerical characters.

katemihalikova commented 8 years ago

This breaks values with leading zeros. Proper keyboard should be shown according to pattern attribute as well, please open a bug against your operating system to fix that.

Duplicate of #3

This feature can be implemented by providing an attribute that switches type attribute of inputs, but text should be the default one.