materialize: dropdown.js still has the problem of misaligned taps

Dogfalo has fixed select.js to resolve the problem of the recognizing position of tap on iOS 13. Meanwhile, dropdown.js still has a such problem.

https://github.com/Dogfalo/materialize/commit/c0da34049deec36efbd4681f73b3446e92918ca8#commitcomment-36941624

I know this problem causes from the strange behavior of iOS 13 (and 14). https://developer.apple.com/forums/thread/120586

My current idea is to use'ontouchend' in document.documentElement to check if the browser supports ontouchend and use this event if suppports. If not, then use the onclick event. Though it will work well, I’m not sure if I can spend time solving this, so I wrote it down in this issue anyway.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 15 (2 by maintainers)

Most upvoted comments

iOS 13 and later… unfortunately I don’t have such device to try it out cry

We can probably test on https://browserstack.com

awesome. Thanks, @guizuliani ! any issue grabbing the current version of dropdown.js from the repo - or would I need to go back to the version from the latest release?

You can get the current version of dropdown.js from the repo.

@DanielRuf https://github.com/Dogfalo/materialize/issues/6514#issuecomment-594657199 I found the simplest solution in this issue, but I have to check if this affects other parts carefully.