Skip to content
Advertisement

How to disable scroll on HTML5 date inputs having a webshim fallback in

I’m trying without success to disable scroll on an HTML5 date input.
This input has a webshim fallback, which cause my JS to works with Chrome, but not Firefox.

JavaScript
JavaScript

Does anyone ever faced this issue?

Advertisement

Answer

I had the opportunity to discuss of this problem with webshim’s author, and it was found that an option is available to avoid this kind of problem: noSpinbtn.

Thus, the code will looks like this:

JavaScript
JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement