mymth / vanillajs-datepicker

A vanilla JavaScript remake of bootstrap-datepicker for Bulma and other CSS frameworks
MIT License
744 stars 154 forks source link

Dropdown behaviour on mobile device #95

Closed lenadax closed 1 year ago

lenadax commented 2 years ago

On tap on the input field (mobile device), sometimes the android keyboard entirely covers the datepicker dropdown, making it almost impossible to tap it and scroll down. Currently, a tap or move (touchstart) outside the datepicker input or datepicker dropdown closes the dropdown.

Possibly, instead of binding on touchstart, onMousedownDocument could be bound on touchend instead, so the user has the opportunity to scroll to a better position?