PLT-7318 fixing focus issue with IPad (#7287)

* PLT-7318 fixing focus issue with IPad

* Fixing for RHS
This commit is contained in:
Corey Hulen
2017-08-25 10:42:04 -04:00
committed by Harrison Healey
parent 50fc6e1e9e
commit 1c268dfd72
3 changed files with 3 additions and 3 deletions
@@ -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();
}
}
+1 -1
View File
@@ -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();
}
}
+1 -1
View File
@@ -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() {