flatpickr: Demo not working at all on iOS (or iPad) as if mere textbox

Expected Behavior

Calendar appears when input is tapped (i.e. focused).

Current Behavior

Calendar does not show up at all. The input works as if it were a mere <input type="text" />

Possible Solution

No idea…

Steps to Reproduce (for bugs)

Open the demo and tap any input.

Context

Official demo only, maybe.

Your Environment

  • Version used: Official Demo
  • Browser Name and version: Chrome 55.0.2883.79, Safari 601.1
  • Operating System and version (desktop or mobile): iOS 9.3.5 (iPad Air)
  • Link to your project: None

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 1
  • Comments: 17 (9 by maintainers)

Commits related to this issue

Most upvoted comments

As far as I can tell, the reason is that Object.assign in Safari does not work when using element.dataset as a source object. I’m assuming this is because it’s a DOMStringMap and this doesn’t work with Safari’s implementation of Object.assign.

Brilliant. Thank you. Should be resolved by 53af0ba