fix editbox can't input on UC browser

This commit is contained in:
zilongshanren
2017-06-16 16:43:43 +08:00
parent 6aa097b9a8
commit 14feef564f
+7 -1
View File
@@ -969,7 +969,13 @@ _ccsg.EditBox.KeyboardReturnType = KeyboardReturnType;
if (!this._editBox._alwaysOnTop) {
if (this._edTxt.style.display === 'none') {
this._edTxt.style.display = '';
this._edTxt.focus();
if (cc.sys.browserType === cc.sys.BROWSER_TYPE_UC) {
setTimeout(function () {
this._edTxt.focus();
}.bind(this), TIMER_NAME);
} else {
this._edTxt.focus();
}
}
}