Using ion-segment in ion-navbar

Hello everyone,

I am trying to use segments in the navbar, but they disable the Back button (not clickable).

Here is the relevant snippet:

<ion-navbar *navbar primary>
  <ion-segment light>
    <ion-segment-button value="one">
      One
    </ion-segment-button>
    <ion-segment-button value="two">
      Two
    </ion-segment-button>
  </ion-segment>
</ion-navbar>

It produces the following on an iOS emulator. I can choose either segment but Back button is not clickable.

image

I tried with a fresh tutorial project and it is the same.

Do I need to structure it differently or is this a bug?

Thanks,

You should be wrapping the <ion-segment> inside an <ion-toolbar>