Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

Fastclick makes elements inside shadow dom are unclickedable on IOS devices #604

Open
Mangor1no opened this issue Apr 29, 2020 · 0 comments

Comments

@Mangor1no
Copy link

Mangor1no commented Apr 29, 2020

As the title said, I bumped into this situation when I was working with the ShadowDom. I built a box which contained some links, then loaded it into my websites, one for desktop users and one for mobile users. After some tests, I realized that links inside my box are unclickedable in mobile page on IOS devices. I did several researches on google, some debugging, and found out my coworker implement this library into this one.

I created a small example to reproduce the bug, and also the temporally solution for this situation.
FiddleJS: https://jsfiddle.net/mangorino/eo0pmLsk/14/
FiddleJS show: https://jsfiddle.net/mangorino/eo0pmLsk/14/show

Although the bug can be manually fixed by adding a class into shadowhost div, I still consider this as an issue. Please check and fix it in your next version.

Hope my solution can help people out there!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant