From d49e8dd501bab15d527dddd16cbcd6af551e2c77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillermo=20Vay=C3=A1?= Date: Wed, 17 Jun 2020 10:42:28 +0200 Subject: [PATCH] [MM-25980] no menu for popups (#1323) * [MM-25980] remove menu for win and linux * [MM-25980] fix focus error * revert menu visibility on popup --- src/browser/components/MainPage.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/browser/components/MainPage.jsx b/src/browser/components/MainPage.jsx index 56298606..df9ee483 100644 --- a/src/browser/components/MainPage.jsx +++ b/src/browser/components/MainPage.jsx @@ -347,8 +347,8 @@ export default class MainPage extends React.Component { } focusListener = () => { - if (this.state.showNewTeamModal && this.inputRef) { - this.inputRef.current().focus(); + if (this.state.showNewTeamModal && this.inputRef && this.inputRef.current) { + this.inputRef.current.focus(); } else if (!(this.state.finderVisible && this.state.focusFinder)) { this.handleOnTeamFocused(this.state.key); this.refs[`mattermostView${this.state.key}`].focusOnWebView();