We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86eff4c commit 78a34bbCopy full SHA for 78a34bb
src/components/Modal/Modal.vue
@@ -324,6 +324,8 @@ export default {
324
},
325
beforeDestroy() {
326
window.removeEventListener('keydown', this.handleKeydown)
327
+ this.mc.off('swipeleft swiperight')
328
+ this.mc.destroy()
329
330
mounted() {
331
this.showModal = true
@@ -339,9 +341,8 @@ export default {
339
341
// force mount the component to body
340
342
document.body.insertBefore(this.$el, document.body.lastChild)
343
- unmounted() {
- this.mc.off('swipeleft swiperight')
344
- this.mc.destroy()
+ destroyed() {
345
+ this.$el.remove()
346
347
348
methods: {
0 commit comments