[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:
parent
a500bf70da
commit
d49e8dd501
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue