aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src/components')
-rw-r--r--vnext/src/components/MessageInput.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/vnext/src/components/MessageInput.js b/vnext/src/components/MessageInput.js
index 5766f2ac..5b603e9a 100644
--- a/vnext/src/components/MessageInput.js
+++ b/vnext/src/components/MessageInput.js
@@ -49,8 +49,8 @@ export default class MessageInput extends React.Component {
}
componentDidMount() {
- const isMobile = window.matchMedia('only screen and (width <62.5rem)');
- if (!isMobile.matches) {
+ const isDesktop = window.matchMedia('(min-width: 62.5rem)');
+ if (isDesktop.matches) {
this.textarea.current.focus();
}
}