Prechádzať zdrojové kódy

Fix a type: document -> document.body

Does that fix #176?
Maxime Quandalle 9 rokov pred
rodič
commit
22e854cc30
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      client/lib/escapeActions.js

+ 1 - 1
client/lib/escapeActions.js

@@ -150,7 +150,7 @@ Mousetrap.bindGlobal('esc', function() {
 // On a left click on the document, we try to exectute one escape action (eg,
 // close the popup). We don't execute any action if the user has clicked on a
 // link or a button.
-$(document).on('click', function(evt) {
+$(document.body).on('click', function(evt) {
   if (evt.which === 1 &&
     $(evt.target).closest('a,button,.is-editable').length === 0) {
     EscapeActions.clickExecute(evt.target, 'multiselection');