Skip to content

Commit

Permalink
Merge pull request RocketChat#288 from shubhsherl/fix_msg_action
Browse files Browse the repository at this point in the history
Fix double popover message action
  • Loading branch information
ear-dev committed May 28, 2020
2 parents f79a8e4 + a8394a2 commit 25cba99
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/ui-utils/client/lib/popover.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export const popover = {
if (activeElement) {
$(activeElement).removeClass('active');
}
this.renderedPopover = null;
},
};

Expand Down
4 changes: 3 additions & 1 deletion app/ui/client/views/app/room.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,9 @@ const mountPopover = (e, i, outerContext) => {
onRendered: () => new Clipboard('.rc-popover__item'),
};

popover.open(config);
if (!popover.renderedPopover) {
popover.open(config);
}
};

function roomHasGlobalPurge(room) {
Expand Down

0 comments on commit 25cba99

Please sign in to comment.