X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/e711290d8b1ce06b38e0560248806e8de2077870..refs/pull/5280/head:/resources/js/components/popup.js diff --git a/resources/js/components/popup.js b/resources/js/components/popup.js index 34ab7c181..662736548 100644 --- a/resources/js/components/popup.js +++ b/resources/js/components/popup.js @@ -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) {