Fix Bug 56147
This commit is contained in:
parent
418df1187f
commit
5618e7e590
|
@ -606,8 +606,12 @@ define([
|
||||||
this.hidePwd = true;
|
this.hidePwd = true;
|
||||||
}
|
}
|
||||||
var me = this;
|
var me = this;
|
||||||
|
var prevstart = me._input[0].selectionStart,
|
||||||
|
prevend = me._input[0].selectionEnd;
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
me.focus();
|
me.focus();
|
||||||
|
me._input[0].selectionStart = prevstart;
|
||||||
|
me._input[0].selectionEnd = prevend;
|
||||||
}, 1);
|
}, 1);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -648,8 +652,12 @@ define([
|
||||||
this._btnElm.off('mouseup', this.passwordHide);
|
this._btnElm.off('mouseup', this.passwordHide);
|
||||||
this._btnElm.off('mouseout', this.passwordHide);
|
this._btnElm.off('mouseout', this.passwordHide);
|
||||||
var me = this;
|
var me = this;
|
||||||
|
var prevstart = me._input[0].selectionStart,
|
||||||
|
prevend = me._input[0].selectionEnd;
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
me.focus();
|
me.focus();
|
||||||
|
me._input[0].selectionStart = prevstart;
|
||||||
|
me._input[0].selectionEnd = prevend;
|
||||||
}, 1);
|
}, 1);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue