Upon logging into the app, users encounter a modal that prompts them to enter data before proceeding to the logged-in page. This page is supposed to display a menu, which I have enabled by calling this.menu.enable on the home page. However, despite enabling the menu, it does not appear when selected. It seems that the presence of the modal is somehow preventing the menu from showing up. Even when using menu.open(), the menu remains hidden unless the modal is removed. It appears that the modal is interfering with the functionality of the menu.
Modal.ts
export class ModalPage {
items: Item[] = [];
constructor(public navCtrl: NavController,public loadingCtrl: LoadingController,public user: Login, public viewCtrl: ViewController, public navParams: NavParams, public menu: MenuController){
}
login(){
this.menu.enable(true)
this.doSignup()
}
doSignup() {
this.navCtrl.push(HomePage, {someId: someId});
}
dismiss() {
this.viewCtrl.dismiss(this.items);
}
}
HomePage.ts
constructor( public menu: MenuController) {
this.menu.enable()
}