Prevent auto-focus on load for i18n input
authorAlexander Ebert <ebert@woltlab.com>
Tue, 27 Dec 2016 10:39:43 +0000 (11:39 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 27 Dec 2016 10:39:52 +0000 (11:39 +0100)
wcfsetup/install/files/js/WoltLabSuite/Core/Language/Input.js

index 27b1089cb43a1a82f8a4889a5ccabe6b26e5791d..3fb5a7295d5743f356d131cd15f577cebf012554 100644 (file)
@@ -225,8 +225,10 @@ define(['Core', 'Dictionary', 'Language', 'ObjectMap', 'StringUtil', 'Dom/Traver
                                data.languageId = languageId;
                        }
                        
-                       data.element.blur();
-                       data.element.focus();
+                       if (!isInit) {
+                               data.element.blur();
+                               data.element.focus();
+                       }
                },
                
                /**