Hi guys,
Today I’m trying to add a modal page into my app. I open it when clicking on a button.
But the problem is it’s showing as soon as I reach my page, and I can’t dismiss it…
To implement it, I followed this guide: https://medium.com/@david.dalbusco/how-to-declare-and-use-modals-in-ionic-v4-4d3f42ac30a3
async openVideoConseil(video) {
const modal = await this.modal.create({
component: VideoModalPage,
componentProps: {
'video': video,
}
});
return await modal.present();
}
I called a console.log('open modal');
here but it’s never shown, even if the modal gets opened.
The only time I call my modal is in my template code, when clicking on a button.
If you need anything else, feel free to ask
Thanks !