HTML5 number input field step attribute broken in Internet Explorer 10 and Internet Explorer 11

后端 未结 4 698
南方客
南方客 2020-12-10 14:09

It appears some of my website\'s users are experiencing issues when attempting to insert values into input fields of type number with the step attribute set.

I am usi

4条回答
  •  粉色の甜心
    2020-12-10 15:02

    It looks like IE10+ need a MIN and MAX value in order to work properly. If you defines these values it will work just fine with the 10000 value:

    
    

    Seems that step attributes for numer input just implemented as for Range Input which needs min, max and step values.

    If really you are not able to define a min and max value, you must use Javascript to do that.

提交回复
热议问题