aFarkas / webshim

[DEPRECATED] Webshims Lib is a modular capability-based polyfill-loading library
http://aFarkas.github.com/webshim/demos/index.html
MIT License
1.42k stars 201 forks source link

Step increment and decrement for number inputs do not work if step attribute has 6 decimal places or more #562

Open daiscog opened 8 years ago

daiscog commented 8 years ago

The following jsfiddle demonstrates the issue:

https://jsfiddle.net/dddagLvk/

There are two "number" inputs. The first has a step="0.000001" attribute, the second step="0.00001". The first one doesn't increment/decrement when clicking the buttons, mousewheeling, or using the up and down arrow keys when the element is focussed. The second element works fine.

This issue occurs using IE 10 and 11. Not tested in any other browsers.

Furthermore (not sure if I should raise a second issue for this) the second (working) input in the jsfiddle actually steps down by 0.00003 instead of the step value of 0.00001. This occurs when mousewheeling, using arrow keys, and using the spinner buttons. Stepping up, however, uses the correct step value for all three step methods.