From 9dc196f11fcc4634c76a4f2d4c55f29e4cffedfe Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 25 Sep 2015 13:11:41 +0200 Subject: [PATCH] Fixed input focus issue on iOS/Android --- wcfsetup/install/files/js/WCF.Poll.js | 6 ++++++ 1 file changed, 6 insertions(+) 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(); -- 2.20.1