Disabled the SplitPane while loading


#1

Hi All,

I have disabled the SplitPane in the login.ts by using the below code but while loading the SplitPane menu flashes and then gets disabled. please let me how to fix this issue.

ionViewWillEnter() {
this.menuCtrl.enable(false);
this.menuCtrl.swipeEnable(false);
}

ionViewWillLeave() {
this.menuCtrl.enable(true);
this.menuCtrl.swipeEnable(true);
}

I have also tried adding this code in the constructor.

Please check below link for understanding my question clearly.