In my Ionic Bootstrap configuration, I have the following setup:
{
mode: 'md',
tabsHideOnSubPages: true
}
However, despite having this setting in place, the tabs still appear on some sub-pages. It seems to be happening randomly. Is there a better approach to handling this?
Contact me at : [email protected]
Thank you, Artur
#EDIT:
To hide the tabs, I am currently using the following workaround:
ionViewWillEnter() {
let tabs = document.querySelectorAll('.show-tabbar');
if (tabs !== null) {
Object.keys(tabs).map((key) => {
tabs[key].style.transform = 'translateY(56px)';
});
} // end if
}
ionViewDidLeave() {
let tabs = document.querySelectorAll('.show-tabbar');
if (tabs !== null) {
Object.keys(tabs).map((key) => {
tabs[key].style.transform = 'translateY(0)';
});
} // end if
}
However, I feel that this method is not ideal. Can anyone suggest a simpler solution?