@nirajhinge wrote:
I have a basic popover like this:
async openPopover(ev: Event) { const popover = await this.popoverController.create({ component: PopoverPage, componentProps: { id: this.currentUser.id, popoverController: this.popoverController }, event: ev, backdropDismiss: true }); return popover.present(); }
The popover can be disabled by default. But within the popover there is an API request and when it is made it can take 2-5 seconds during which time I want set the
backdropDissmiss
tofalse
. So I tried something like this on thePopoverPage
:constructor( private navParams: NavParams, ) { this.pop = navParams.get('popoverController'); } delete() { this.pop.backdropDismiss = false; this.loading = true; // Api request }
But this seems to not affect the popover at all and the user can still dismiss it by clicking the backdrop. Is it there a way to set the
backdropDismiss
property from the popover page or is it not possible?
Posts: 1
Participants: 1