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">
    <ion-segment-button value="two">

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


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

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


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