Commit 7c382a73 authored by picklesrus's avatar picklesrus

Fix double reply button click bug by "cancelling" the reply when you click it...

Fix double reply button click bug by "cancelling" the reply when you click it and are already muted.
parent de5a8026
...@@ -147,6 +147,13 @@ class ComposeComment extends React.Component { ...@@ -147,6 +147,13 @@ class ComposeComment extends React.Component {
this.setState({ this.setState({
muteOpen: false muteOpen: false
}); });
// Cancel (i.e. complete) the reply action if the user clicked on the reply button while
// alreay muted. This "closes" the reply. If they just got muted, we want to leave it open
// so the blue CommentingStatus box shows.
if (this.props.isReply && this.state.status !== ComposeStatus.REJECTED_MUTE) {
this.handleCancel();
}
} }
handleMuteOpen () { handleMuteOpen () {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment