MaxArt2501 / share-this

Medium-like text selection sharing without dependencies
https://maxart2501.github.io/share-this/
MIT License
808 stars 53 forks source link

Does not work properly on iPhone #64

Open mnzawa opened 2 years ago

mnzawa commented 2 years ago

I discovered this bug in December 2021. Reproduce on the latest iOS.

When I display share-this and try to tap the share button, it disappears. https://maxart2501.github.io/share-this/ Perhaps the click event isn't working properly, but I'm not sure.

It works on PC and Android, so I think it's a problem only for iOS. Is there any improvement plan?

MaxArt2501 commented 2 years ago

Hello, thank you for the feedback. It seems to work properly for me in my iPhone, so maybe can you specify what is happening exactly? Are you using Safari? Which of the 5 share buttons are you clicking? What disappears: the selection, the popover...?

mnzawa commented 2 years ago

Thank you for confirming.

Here are the results from two users who tried it.

MaxArt2501 commented 2 years ago

The fifth sharer (the 4th in order) appears only if the selected text is unique in the container (case sensitive). I have iOS 14.7 right now so maybe that's the culprit (i.e. Apple breaking things again). I'll investigate more thoroughly when I'll update the OS.

mnzawa commented 2 years ago

Thank you. I look forward to your investigation.

Ismael-Hery commented 2 years ago

Hello @MaxArt2501,

I encounter the same problem. Click on iOS 15.3.1 closes the pop over without triggering action. Adding manually a click event listener does not work either.

Thank you for your help.