Wrong title displayed when mixing image and text view titles

I am struggling with what seems like a bug when having some views that uses an image in the view title and some that uses text. I have narrowed it down as much as possible and have a codepen to show what happens.

The “Home” and “Page 1” pages uses an image in the title bar. “Page 2” uses a text.

Here is a description of my problem:

  1. Notice the ionic image in the title bar on the first page.
  2. Click on “Go to page 1”
  3. Notice the image in the title bar.
  4. Click on “Go to page 2”.
  5. Notice the “Page 2” title in the title bar.
  6. Click “< Back”
  7. Notice the image in the title bar.
  8. Click “< Back”
  9. Notice the text that shows in the title bar, which is taken from “Page 2”.

Looks like a bug to me? Any ideas?

1 Like