From fa6a937896b0994c3f6b8370c6f1cee8e039d8ce Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 19 Mar 2020 09:58:49 +0000 Subject: [PATCH] don't block onFinished as there are other ways to close modal Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/components/views/dialogs/InviteDialog.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/components/views/dialogs/InviteDialog.js b/src/components/views/dialogs/InviteDialog.js index 88f7c8d404..f0d5443cac 100644 --- a/src/components/views/dialogs/InviteDialog.js +++ b/src/components/views/dialogs/InviteDialog.js @@ -648,13 +648,6 @@ export default class InviteDialog extends React.PureComponent { }); }; - _cancel = () => { - // We do not want the user to close the dialog while an action is in progress - if (this.state.busy) return; - - this.props.onFinished(); - }; - _onKeyDown = (e) => { // when the field is empty and the user hits backspace remove the right-most target if (!e.target.value && !this.state.busy && this.state.targets.length > 0 && e.key === Key.BACKSPACE && @@ -907,7 +900,7 @@ export default class InviteDialog extends React.PureComponent { _onManageSettingsClick = (e) => { e.preventDefault(); dis.dispatch({ action: 'view_user_settings' }); - this._cancel(); + this.props.onFinished(); }; _renderSection(kind: "recents"|"suggestions") { @@ -1107,7 +1100,7 @@ export default class InviteDialog extends React.PureComponent {