From 3c869c885539c500633c77be5f9e7b7e751dc86f Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 16 Oct 2016 19:37:55 +0200 Subject: [PATCH] Slightly delay focus to work-around some browser issues --- wcfsetup/install/files/js/WCF.ColorPicker.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/WCF.ColorPicker.js b/wcfsetup/install/files/js/WCF.ColorPicker.js index 1776f80fd8..5b0b0c94c1 100644 --- a/wcfsetup/install/files/js/WCF.ColorPicker.js +++ b/wcfsetup/install/files/js/WCF.ColorPicker.js @@ -143,7 +143,9 @@ WCF.ColorPicker = Class.extend({ }); // set default focus - this._hex.focus(); + window.setTimeout((function () { + this._hex.focus(); + }).bind(this), 200); }, /** -- 2.20.1