From d8e83f8dda1c008db2c650e86bec475818dd7c3e Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 30 Aug 2016 13:15:32 +0200 Subject: [PATCH] Listening on 'click' can cause iOS Safari to lose focus --- wcfsetup/install/files/js/WCF.Message.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/WCF.Message.js b/wcfsetup/install/files/js/WCF.Message.js index 3e6e6f51b9..09eba48dd8 100644 --- a/wcfsetup/install/files/js/WCF.Message.js +++ b/wcfsetup/install/files/js/WCF.Message.js @@ -706,7 +706,7 @@ WCF.Message.Smilies = Class.extend({ init: function(editorId) { this._editorId = editorId; - $('.messageTabMenu[data-wysiwyg-container-id=' + this._editorId + ']').on('click', '.jsSmiley', this._smileyClick.bind(this)); + $('.messageTabMenu[data-wysiwyg-container-id=' + this._editorId + ']').on('mousedown', '.jsSmiley', this._smileyClick.bind(this)); }, /** -- 2.20.1