summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2017-08-25 07:42:04 -0700
committerHarrison Healey <harrisonmhealey@gmail.com>2017-08-25 10:42:04 -0400
commit1c268dfd729a6e271b55e6650fb6f025948dc3db (patch)
tree6c678ecf903fdd7bec1b1df1321b16d1d745abcb /webapp
parent50fc6e1e9e8d286fd6a406cef75e48a28f9427ad (diff)
downloadchat-1c268dfd729a6e271b55e6650fb6f025948dc3db.tar.gz
chat-1c268dfd729a6e271b55e6650fb6f025948dc3db.tar.bz2
chat-1c268dfd729a6e271b55e6650fb6f025948dc3db.zip
PLT-7318 fixing focus issue with IPad (#7287)
* PLT-7318 fixing focus issue with IPad * Fixing for RHS
Diffstat (limited to 'webapp')
-rw-r--r--webapp/components/create_comment/create_comment.jsx2
-rw-r--r--webapp/components/create_post.jsx2
-rw-r--r--webapp/utils/user_agent.jsx2
3 files changed, 3 insertions, 3 deletions
diff --git a/webapp/components/create_comment/create_comment.jsx b/webapp/components/create_comment/create_comment.jsx
index 54f3f65ca..18648d0e9 100644
--- a/webapp/components/create_comment/create_comment.jsx
+++ b/webapp/components/create_comment/create_comment.jsx
@@ -455,7 +455,7 @@ export default class CreateComment extends React.Component {
}
focusTextbox = (keepFocus = false) => {
- if (keepFocus || !Utils.isMobile()) {
+ if (keepFocus || !UserAgent.isMobile()) {
this.refs.textbox.focus();
}
}
diff --git a/webapp/components/create_post.jsx b/webapp/components/create_post.jsx
index e7329c5f3..1a7771b9b 100644
--- a/webapp/components/create_post.jsx
+++ b/webapp/components/create_post.jsx
@@ -302,7 +302,7 @@ export default class CreatePost extends React.Component {
}
focusTextbox(keepFocus = false) {
- if (keepFocus || !Utils.isMobile()) {
+ if (keepFocus || !UserAgent.isMobile()) {
this.refs.textbox.focus();
}
}
diff --git a/webapp/utils/user_agent.jsx b/webapp/utils/user_agent.jsx
index 1074b02e2..c16d61d45 100644
--- a/webapp/utils/user_agent.jsx
+++ b/webapp/utils/user_agent.jsx
@@ -64,7 +64,7 @@ export function isIosWeb() {
}
export function isIos() {
- return userAgent.indexOf('iPhone') !== -1;
+ return userAgent.indexOf('iPhone') !== -1 || userAgent.indexOf('iPad') !== -1;
}
export function isAndroid() {