Merge pull request #6949 from MrPetovan/bug/6947-frio-fix-fake-form

[frio] Switch comment box closing event listener from click to mousedown
This commit is contained in:
Michael Vogel
2019-03-29 07:25:45 +01:00
committed by GitHub

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;
} }