chrisdavies / tiny-date-picker

A small, modern, dependency-free date picker
https://chrisdavies.github.io/tiny-date-picker/
415 stars 87 forks source link

range picker not working on ipadOS 13 #118

Open forwardever opened 4 years ago

forwardever commented 4 years ago

range picker not working on ipadOS 13

I used your demo page and browserstack, date picker seems to work though

forwardever commented 4 years ago

any hint how to fix this? this issue makes the range picker unusable on all newer ipad devices

using browserstack, the only way to select a date is to triple click a day

hrishiv90 commented 2 years ago

The newer iPad OS versions don't have "iPad" string in userAgent which is why this plugin is not able to solve the double clicking part in latest iPad OS. You can update the userAgent check in plugin code to with below condition- /Macintosh/.test(navigator.userAgent) && 'ontouchend' in document