After selecting the value from popup, the pop up is still displayed on the UI. i used popoverController from the ionic , when i m selecting any value from pop-up … the value get selected but pop-up didn’t get closed it is there on the page only. but second time if select anything the popup get closed.![popup|690x379]
Hi, @kunalinfo
Try this,
In popover page’s listing add method close on click event.
HTML File:
<ion-list>
<ion-list-header>Ionic</ion-list-header>
<button ion-item (click)=“close()”>Learn Ionic</button>
<button ion-item (click)=“close()”>Documentation</button>
</ion-list>
and in popover page’s component file:
TS File:
class PopoverPage {
constructor(public viewCtrl: ViewController) {}
close() {
this.viewCtrl.dismiss();
}
}
Hope it will help you.