[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
This commit is contained in:
Guillermo Vayá 2020-06-17 10:42:28 +02:00 committed by GitHub
parent a500bf70da
commit d49e8dd501
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -347,8 +347,8 @@ export default class MainPage extends React.Component {
} }
focusListener = () => { focusListener = () => {
if (this.state.showNewTeamModal && this.inputRef) { if (this.state.showNewTeamModal && this.inputRef && this.inputRef.current) {
this.inputRef.current().focus(); this.inputRef.current.focus();
} else if (!(this.state.finderVisible && this.state.focusFinder)) { } else if (!(this.state.finderVisible && this.state.focusFinder)) {
this.handleOnTeamFocused(this.state.key); this.handleOnTeamFocused(this.state.key);
this.refs[`mattermostView${this.state.key}`].focusOnWebView(); this.refs[`mattermostView${this.state.key}`].focusOnWebView();