ionic-team / ionic-v1

The repo for Ionic 1.x. For the latest version of Ionic, please see https://github.com/ionic-team/ionic
Other
193 stars 187 forks source link

Back button will not show up if you do not specify a class for the nav bar #116

Open jgw96 opened 7 years ago

jgw96 commented 7 years ago

From @cfjedimaster on June 29, 2016 13:38

Short description of the problem:

Given a simple nav bar:

<ion-nav-bar>
      <ion-nav-back-button>Back</ion-nav-back-button>
</ion-nav-bar>

The back button will not show automatically if you specify a class.

What behavior are you expecting?

It should work whether I specify a class or not.

Which Ionic Version? 1.x or 2.x 1.x

Here is a CodePen showing the bug: http://codepen.io/cfjedimaster/pen/WxpPap

And here is a CodePen (from Mike) showing the fix with class: http://codepen.io/mhartington/pen/YWZBdK

Copied from original issue: driftyco/ionic#7124

jgw96 commented 7 years ago

From @Emeryao on June 30, 2016 3:11

the name is ion-nav-back-button so it should be in a ion-nav-bar isn't it?

jgw96 commented 7 years ago

From @cfjedimaster on June 30, 2016 9:22

Um. It is - isn't it?