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
commit 1c2a77c47f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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