This commit is contained in:
Michael Telatynski 2021-05-28 13:51:54 +01:00
parent caaef63077
commit 91b7f25513

View file

@ -408,9 +408,6 @@ export default class InviteDialog extends React.PureComponent<IInviteDialogProps
componentWillUnmount() { componentWillUnmount() {
this.unmounted = true; this.unmounted = true;
}
componentWillUnmount() {
// if the Copied tooltip is open then get rid of it, there are ways to close the modal which wouldn't close // if the Copied tooltip is open then get rid of it, there are ways to close the modal which wouldn't close
// the tooltip otherwise, such as pressing Escape or clicking X really quickly // the tooltip otherwise, such as pressing Escape or clicking X really quickly
if (this.closeCopiedTooltip) this.closeCopiedTooltip(); if (this.closeCopiedTooltip) this.closeCopiedTooltip();