Browse Source

Add select input after incorrect input

j8
Ilya Daynatovich 8 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,8 +123,10 @@ export default class RequirePasswordDialog {
123 123
      */
124 124
     _showError() {
125 125
         let className = this.inputErrorClass;
126
+        let input = document.getElementById(this.inputId);
126 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