In pages where I use ionViewCanLeave(){}
When someone tries to leave page 1 to Page 2, and it returns false, it will remain in the current view (Which is ok), but once the condition is met, when you try again to leave the page 1 to page 2, clicking page 2 link in the left menu does nothing. You can’t leave the page (which I think page 2 is already considered active - not sure), so I ALWAYS have to click somewhere else, that is go to another page like page 3, then I can be able to go to page 2.
ionViewCanLeave(): boolean {
if (this.loggingOut === 'no') {
if (this.userRestrictions()) {
if (this.itemsNotSaved("no_staff")) {
return false;
} else {
return true;
}
} else {
return false;
}
}
}
This looks like a bug because it happens to all my apps. I can add some code if need be but I thought its a common issue that is well known. Please let me know if I should explain more or if you can point me in the right direction. Thank you so much!
Philip.
1 post - 1 participant