From: Hypolite Petovan Date: Fri, 29 Mar 2019 02:31:47 +0000 (-0400) Subject: Switch comment box closing event listener from click to mousedown X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3f640169f70355b301be90faf212c9c5bc9c93b4;p=friendica.git Switch comment box closing event listener from click to mousedown - Fix event race condition in Chrome 73 (https://github.com/friendica/friendica/issues/6947) --- diff --git a/view/theme/frio/js/theme.js b/view/theme/frio/js/theme.js index 83623bf342..d058cc4aa2 100644 --- a/view/theme/frio/js/theme.js +++ b/view/theme/frio/js/theme.js @@ -282,7 +282,7 @@ $(document).ready(function(){ * We are making an exception for buttons because of a race condition with the * comment opening button that results in an already closed comment UI. */ - $(document).on('click', function(event) { + $(document).on('mousedown', function(event) { if (event.target.type === 'button') { return true; }