File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " react-share " : patch
3+ ---
4+ Fix ` EmailShareButton ` : a bug slipped in that broke the sharing functionality.
Original file line number Diff line number Diff line change 1- import type React from 'react' ;
21import objectToGetParams from './utils/objectToGetParams' ;
32import createShareButton from './hocs/createShareButton' ;
43
@@ -22,11 +21,8 @@ const EmailShareButton = createShareButton<Options>(
2221 } ) ,
2322 {
2423 openShareDialogOnClick : false ,
25- onClick : ( event : React . MouseEvent < HTMLButtonElement > ) => {
26- const link = event . currentTarget . getAttribute ( 'data-link' ) ;
27- if ( link ) {
28- window . location . href = link ;
29- }
24+ onClick : ( _ , link : string ) => {
25+ window . location . href = link ;
3026 } ,
3127 } ,
3228) ;
You can’t perform that action at this time.
0 commit comments