diff --git a/apps/common/main/lib/component/InputField.js b/apps/common/main/lib/component/InputField.js index 28f1d30b6c..d8148a1132 100644 --- a/apps/common/main/lib/component/InputField.js +++ b/apps/common/main/lib/component/InputField.js @@ -605,6 +605,10 @@ define([ this.passwordHide(e); this.hidePwd = true; } + var me = this; + setTimeout(function () { + me.focus(); + }, 1); }, passwordShow: function (e) { @@ -643,6 +647,10 @@ define([ else { this._btnElm.off('mouseup', this.passwordHide); this._btnElm.off('mouseout', this.passwordHide); + var me = this; + setTimeout(function () { + me.focus(); + }, 1); } }, textHintShowPwd: 'Show password',