Listening on 'click' can cause iOS Safari to lose focus
authorAlexander Ebert <ebert@woltlab.com>
Tue, 30 Aug 2016 11:15:32 +0000 (13:15 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 30 Aug 2016 11:15:32 +0000 (13:15 +0200)
wcfsetup/install/files/js/WCF.Message.js

index 3e6e6f51b974ece15477660256dc224598d74a37..09eba48dd8c25c3591138ee5f29dfad7eba72cee 100644 (file)
@@ -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));
        },
        
        /**