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; + } } } });