From 3f640169f70355b301be90faf212c9c5bc9c93b4 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Thu, 28 Mar 2019 22:31:47 -0400 Subject: [PATCH] Switch comment box closing event listener from click to mousedown - Fix event race condition in Chrome 73 (https://github.com/friendica/friendica/issues/6947) --- view/theme/frio/js/theme.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view/theme/frio/js/theme.js b/view/theme/frio/js/theme.js index 83623bf34..d058cc4aa 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; }