Hamburger icon disappears randomly


#1

I am using the following code to display a nav-bar and a nav-bar-view display content for the app. Randomly (when I access links from the side menu) the ‘hamburger’ icon keeps disappearing from the nav-bar and I have to click on the address bar and press enter for the page to refresh the page for it show up again. This is happening in browser (using ionic serve) and on device as well. Can someone tell me why is this happening? I don’t have a codepen as it’s happening very randomly and I don’t have a set of steps to reproduce it.

<ion-side-menu-content drag-content="false">
	<ion-nav-bar class="bar-stable">
	  <ion-nav-buttons side="left">
		<button class="button button-icon button-clear ion-navicon" menu-toggle="left">
		</button>
	  </ion-nav-buttons>
	</ion-nav-bar>
	<ion-nav-view name="appContent">
	</ion-nav-view>
</ion-side-menu-content>

#2

@atig I ran into this issue . did you figure out an answer for this ?


#3

I figured it out add enable-menu attribute to root like this ion-side-menus enable-menu-with-back-views=“true”


#4

Thanks this helped allot. Should really be the default behaviour IMHO.


#5

Yup it’s 100% normal. It’s the default behaviour of native apps.
When you tap a link, you go to a “child” view (a back button should have appeared on top, and the side menu should have been disabled).
As mentioned by @kumargarapati, you can force it.