Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Fix #3785, close share panel properly when clicking twice on the shar…
Browse files Browse the repository at this point in the history
…e button
  • Loading branch information
ianb committed Jan 4, 2018
1 parent 318c32e commit 72ae4b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/src/share-buttons.js
Expand Up @@ -50,7 +50,9 @@ exports.ShareButton = class ShareButton extends React.Component {
if (this.props.setPanelState) {
this.props.setPanelState("panel-closed");
}
this.shareDiv.blur();
if (this.shareDiv) {
this.shareDiv.blur();
}
sendEvent("cancel-share");
}
}
Expand Down

0 comments on commit 72ae4b7

Please sign in to comment.