From 8c368f9a692db39c1cc90ac69d1747c071b192d3 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Tue, 7 May 2013 08:48:44 +0200 Subject: [PATCH] Fixes initial autofocus of forced multilingual input fields Closes #1238 --- wcfsetup/install/files/js/WCF.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 41a6c89baf..42bd3a2417 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -3092,8 +3092,10 @@ WCF.MultipleLanguageInput = Class.extend({ this._list.prev('.dropdownToggle').children('span').text(this._availableLanguages[this._languageID]); // close selection and set focus on input element - //this._closeSelection(); - this._element.blur().focus(); + if (this._didInit) { + // this._closeSelection(); todo: still needed? + this._element.blur().focus(); + } }, /** -- 2.20.1