ModusCreateOrg/ionic-vue-examples

swipeToClose on modal

visibly opened this issue · 3 comments

Thanks for the examples. Have you succeeded to add swipeToClose to modals?
I'm having issues getting this to work, but I don't know if it's even supported in the Ionic Vue beta?

For reference this is my method for opening the modal (which works perfectly fine - except for the swipeToClose):

openTaskDrawer(task) { return this.modal = this.$ionic.modalController .create({ component: TaskDrawer, presentingElement: this.$el, swipeToClose: true, componentProps: { propsData: { task: task } }, }) .then(m => m.present()) }

Haven't tried, but will check how it's implemented in other ports of ionic and will let you know, should be an easy fix. Thanks for reporting this!

@visibly The method you're talking about was added in Ionic 5, which differs quite a bit from 4, if you try to install it with your ionic-vue project it will fail. I'll be working on a separate tag to bring the support of Ionic 5 to ionic-vue.

try version 1.3.5 that should be fixing it @visibly