]> BookStack Code Mirror - bookstack/blobdiff - resources/js/components/popup.js
Search: Prevented negated terms filling in UI inputs
[bookstack] / resources / js / components / popup.js
index 34ab7c1818e94a40d83baae14aedd0d2943a2f68..6627365483e69f6c90b37d5eac7528f1f0c71be3 100644 (file)
@@ -26,11 +26,11 @@ export class Popup extends Component {
 
         this.container.addEventListener('click', event => {
             if (event.target === this.container && lastMouseDownTarget === this.container) {
-                return this.hide();
+                this.hide();
             }
         });
 
-        onSelect(this.hideButtons, e => this.hide());
+        onSelect(this.hideButtons, () => this.hide());
     }
 
     hide(onComplete = null) {