From: Alexander Ebert Date: Fri, 25 Sep 2015 11:11:41 +0000 (+0200) Subject: Fixed input focus issue on iOS/Android X-Git-Tag: 2.1.8~35 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9dc196f11fcc4634c76a4f2d4c55f29e4cffedfe;p=GitHub%2FWoltLab%2FWCF.git Fixed input focus issue on iOS/Android --- diff --git a/wcfsetup/install/files/js/WCF.Poll.js b/wcfsetup/install/files/js/WCF.Poll.js index 9c8f82257d..0a4b6847e5 100644 --- a/wcfsetup/install/files/js/WCF.Poll.js +++ b/wcfsetup/install/files/js/WCF.Poll.js @@ -120,6 +120,12 @@ WCF.Poll.Management = Class.extend({ // insert input field var $input = $('').css({ width: this._inputSize + "px" }).keydown($.proxy(this._keyDown, this)).appendTo($listItem); + $input.click(function() { + // work-around for some weird focus issue on iOS/Android + if (document.activeElement !== this) { + this.focus(); + } + }); if (insertAfter !== null) { $input.focus();