chemerisuk / better-dateinput-polyfill

input[type=date] polyfill
http://chemerisuk.github.io/better-dateinput-polyfill/
MIT License
259 stars 58 forks source link

Dates are missing when fast switching #47

Closed dudziakl closed 8 years ago

dudziakl commented 9 years ago

When you click fast on left or right arrows, bottom panel with dates may disappear and stay hidden until you reload whole page. I was able to replicate this issue on Internet Explorer 11 and Firefox 38. 2015-05-24_134246 2015-05-24_134234

chemerisuk commented 9 years ago

@valthec there is such a bug indeed. I believe it will be fixed on better-dom side when version 3 will be released. In short the cause is using requestAnimationFrame for visibility methods in better-dom.

dlsso commented 9 years ago

Seems like switching month shouldn't be based on animation frame. Some more details in case they are helpful:

It's the first click that matters. If you wait for half a second after the first click you can click as fast as you want without breaking it. Otherwise the 3rd click will hide the days.