uhlryk / angular-dynamic-number

Highly customizable angular directive for numbers
64 stars 32 forks source link

why is input[type=number] not supported? #25

Open eichie opened 8 years ago

eichie commented 8 years ago

Hi, i use this plugin and it works very well. But i need to optimize my page for mobile and tablet usage and it seems that the plugin not works with input[type=number]. Is there a reason for that? I not, can you change the code, to allow type number?

best regards eichie

uhlryk commented 8 years ago

We don't have number type by design. It is because input number behave differently in various browsers, and it it depends on browser localities. For example if user localities set comma as decimal separator then this directive will not be able to override it.

For mobile and tablets we use input[type=tel].

surfjedi commented 8 years ago

👍