Fix Bug 56147

This commit is contained in:
Julia Radzhabova 2022-03-21 18:21:08 +03:00
parent 418df1187f
commit 5618e7e590

View file

@ -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);
} }
}, },