react-share icon indicating copy to clipboard operation
react-share copied to clipboard

Twitter share button onShareWindowClose issue

Open CamilleLeRoux opened this issue 4 years ago • 5 comments

Hello, I have a probleme when using onShareWindowClose with the twitter button. The event is triggering directly after the twitter window open not at its closure.

Does someone had the same issue and find how to fix it ?

Thanks !

CamilleLeRoux avatar Sep 25 '20 14:09 CamilleLeRoux

+1

aershov24 avatar Oct 21 '20 02:10 aershov24

+1

ashishdocforce avatar Nov 03 '20 13:11 ashishdocforce

I have the same issue

MaryJJ avatar Dec 03 '20 16:12 MaryJJ

+1

FilipeCovas avatar Mar 17 '21 14:03 FilipeCovas

Hi,

twitter sets the cross-origin-opener-policy to "same-origin"

So it means your website/react-share will not see if the window it opened is opened or close (at least on firefox, it always reports it as closed)

If my understanding of that standard is right, there is no way of fixing that bug, it's working as intended (and set up by twitter)

tttp avatar May 10 '21 14:05 tttp