From: Alexander Ebert Date: Sun, 16 Oct 2016 17:37:55 +0000 (+0200) Subject: Slightly delay focus to work-around some browser issues X-Git-Tag: 3.0.0_Beta_3~28^2~3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3c869c885539c500633c77be5f9e7b7e751dc86f;p=GitHub%2FWoltLab%2FWCF.git Slightly delay focus to work-around some browser issues --- 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); }, /**