Browse Source

Add select input after incorrect input

master
Ilya Daynatovich 9 years ago
parent
commit
22b7142159
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      modules/UI/invite/RequirePasswordDialog.js

+ 3
- 1
modules/UI/invite/RequirePasswordDialog.js View File

123
      */
123
      */
124
     _showError() {
124
     _showError() {
125
         let className = this.inputErrorClass;
125
         let className = this.inputErrorClass;
126
+        let input = document.getElementById(this.inputId);
126
         document.getElementById(this.errorId).classList.remove('hide');
127
         document.getElementById(this.errorId).classList.remove('hide');
127
-        document.getElementById(this.inputId).classList.add(className);
128
+        input.classList.add(className);
129
+        input.select();
128
     }
130
     }
129
 
131
 
130
     /**
132
     /**

Loading…
Cancel
Save