Skip to content

Commit

Permalink
reset the state for the delay context action if it is not the delete …
Browse files Browse the repository at this point in the history
…action
  • Loading branch information
Pujan92 committed Nov 30, 2022
1 parent 1f71832 commit b9bb4e6
Showing 1 changed file with 17 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,14 +212,24 @@ class PopoverReportActionContextMenu extends React.Component {
hideContextMenu(onHideActionCallback) {
if (_.isFunction(onHideActionCallback)) {
this.onPopoverHideActionCallback = onHideActionCallback;
if (!this.state.isDeleteCommentConfirmModalVisible) {
this.setState({
reportID: '0',
reportAction: {},
selection: '',
reportActionDraftMessage: '',
isPopoverVisible: false,
});
}
} else {
this.setState({
reportID: '0',
reportAction: {},
selection: '',
reportActionDraftMessage: '',
isPopoverVisible: false,
});
}
this.setState({
reportID: '0',
reportAction: {},
selection: '',
reportActionDraftMessage: '',
isPopoverVisible: false,
});
}

/**
Expand Down

0 comments on commit b9bb4e6

Please sign in to comment.