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:
parent
2f20ba4aa7
commit
3f640169f7
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue