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

Commit

Permalink
Fix #2034, close the share panel after clicking on an item
Browse files Browse the repository at this point in the history
  • Loading branch information
ianb committed Dec 15, 2016
1 parent e8af5ec commit 61e0664
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/src/pages/shot/share-buttons.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class ShareButtonPanel extends React.Component {
sendEvent(
this.props.isOwner ? "share-owner" : "share-non-owner",
whichButton);
this.props.closePanel();
}

onClickCopyButton(e) {
Expand All @@ -82,6 +83,7 @@ class ShareButtonPanel extends React.Component {
event.preventDefault();
this.props.sendRichCopy();
sendEvent("share", "rich-copy");
this.props.closePanel();
return false;
}

Expand Down

0 comments on commit 61e0664

Please sign in to comment.