From: Alexander Ebert Date: Tue, 27 Dec 2016 10:39:43 +0000 (+0100) Subject: Prevent auto-focus on load for i18n input X-Git-Tag: 3.0.0_RC_3~37 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e1bd11ed0b556955fafa266bc6039e75916d56ed;p=GitHub%2FWoltLab%2FWCF.git Prevent auto-focus on load for i18n input --- 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(); + } }, /**