From 799343fe4bfe943ff20ad2b77de6bf47a0bf445a Mon Sep 17 00:00:00 2001 From: Gorzas Date: Thu, 23 May 2019 14:46:10 +0200 Subject: [PATCH] fix: remove sendAction in md-modal Closes #759 --- addon/components/md-modal.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/addon/components/md-modal.js b/addon/components/md-modal.js index 8d0e2c83..59178cbe 100644 --- a/addon/components/md-modal.js +++ b/addon/components/md-modal.js @@ -38,12 +38,16 @@ export default Component.extend(EKMixin, UsesSettings, { }), cancel() { - this.sendAction('close'); + if (this.close) { + this.close; + } }, actions: { closeModal() { - this.sendAction('close'); + if (this.close) { + this.close; + } } } });