aboutsummaryrefslogtreecommitdiff
path: root/src/components/modal/modal.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/modal/modal.js')
-rw-r--r--src/components/modal/modal.js21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/components/modal/modal.js b/src/components/modal/modal.js
deleted file mode 100644
index 963f4bcd..00000000
--- a/src/components/modal/modal.js
+++ /dev/null
@@ -1,21 +0,0 @@
-const Modal = {
- props: ['show', 'title'],
- methods: {
- close: function () {
- this.$emit('close')
- },
- handleKeydown: function (e) {
- if (this.show && e.keyCode === 27) {
- this.close()
- }
- }
- },
- mounted: function () {
- document.addEventListener('keydown', this.handleKeydown)
- },
- destroyed: function () {
- document.removeEventListener('keydown', this.handleKeydown)
- }
-}
-
-export default Modal