Add select input after incorrect input

This commit is contained in:
Ilya Daynatovich 2016-10-24 12:12:44 +03:00
parent cba5528478
commit 22b7142159
1 changed files with 3 additions and 1 deletions

View File

@ -123,8 +123,10 @@ export default class RequirePasswordDialog {
*/
_showError() {
let className = this.inputErrorClass;
let input = document.getElementById(this.inputId);
document.getElementById(this.errorId).classList.remove('hide');
document.getElementById(this.inputId).classList.add(className);
input.classList.add(className);
input.select();
}
/**