diff options
| author | taehoon <th.dev91@gmail.com> | 2019-10-21 20:52:31 -0400 |
|---|---|---|
| committer | taehoon <th.dev91@gmail.com> | 2019-10-21 20:52:31 -0400 |
| commit | 6084a5b6fe43bd14cf5d87a8f1623b338aad936e (patch) | |
| tree | dd129a403f581fb7626f278573cb41aa6d5d74fe /src/components/modal | |
| parent | c23a87d8ff7dfed662b5288d6fb77da1a7b3ebbc (diff) | |
update event name
Diffstat (limited to 'src/components/modal')
| -rw-r--r-- | src/components/modal/modal.js | 5 | ||||
| -rw-r--r-- | src/components/modal/modal.vue | 2 |
2 files changed, 1 insertions, 6 deletions
diff --git a/src/components/modal/modal.js b/src/components/modal/modal.js index 78537a1b..8daa27a3 100644 --- a/src/components/modal/modal.js +++ b/src/components/modal/modal.js @@ -4,11 +4,6 @@ const Modal = { type: Boolean, default: true } - }, - methods: { - closeModal () { - this.$emit('close') - } } } diff --git a/src/components/modal/modal.vue b/src/components/modal/modal.vue index 500b3d0a..2e26d89b 100644 --- a/src/components/modal/modal.vue +++ b/src/components/modal/modal.vue @@ -3,7 +3,7 @@ v-show="isOpen" v-body-scroll-lock="isOpen" class="modal-view" - @click.self="closeModal" + @click.self="$emit('backdropClicked')" > <slot /> </div> |
