Switch comment box closing event listener from click to mousedown

- Fix event race condition in Chrome 73 (https://github.com/friendica/friendica/issues/6947)
This commit is contained in:
Hypolite Petovan 2019-03-28 22:31:47 -04:00
parent 2f20ba4aa7
commit 3f640169f7

View file

@ -282,7 +282,7 @@ $(document).ready(function(){
* We are making an exception for buttons because of a race condition with the * 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. * 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') { if (event.target.type === 'button') {
return true; return true;
} }