From e1bd11ed0b556955fafa266bc6039e75916d56ed Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 27 Dec 2016 11:39:43 +0100 Subject: [PATCH] Prevent auto-focus on load for i18n input --- .../install/files/js/WoltLabSuite/Core/Language/Input.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Language/Input.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Language/Input.js index 27b1089cb4..3fb5a7295d 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Language/Input.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Language/Input.js @@ -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(); + } }, /** -- 2.20.1