From 6084a5b6fe43bd14cf5d87a8f1623b338aad936e Mon Sep 17 00:00:00 2001
From: taehoon
Date: Mon, 21 Oct 2019 20:52:31 -0400
Subject: update event name
---
src/components/modal/modal.js | 5 -----
src/components/modal/modal.vue | 2 +-
2 files changed, 1 insertion(+), 6 deletions(-)
(limited to 'src/components/modal')
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')"
>
--
cgit v1.2.3-70-g09d2