PLT-7318 fixing focus issue with IPad (#7287)
* PLT-7318 fixing focus issue with IPad * Fixing for RHS
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
50fc6e1e9e
Коммит
1c268dfd72
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Ссылка в новой задаче
Block a user