Ionic-framework: bug: ion-header ios 11 style only working on first tab

Created on 12 Oct 2019  路  9Comments  路  Source: ionic-team/ionic-framework

Bug Report

Ionic version:


[x] 4.11.0

Current behavior:

The "condense" header is only working on the first loaded tab.
out

Expected behavior:
The header should be hidden in all tabs.

Related code:
Example in StackBlitz

Ionic info:

Ionic:

   Ionic CLI                     : 5.4.1 
   Ionic Framework               : @ionic/angular 4.11.0
   @angular-devkit/build-angular : 0.801.3
   @angular-devkit/schematics    : 8.1.3
   @angular/cli                  : 8.1.3
   @ionic/angular-toolkit        : 2.0.0


System:

   ios-deploy : 1.9.4
   ios-sim    : 6.1.3
   NodeJS     : v10.15.3 
   npm        : 6.11.3
   OS         : macOS Mojave
   Xcode      : Xcode 11.0 Build version 11A420a
core bug

All 9 comments

Glad to see someone trying the new iOS 11 style header 馃檪. Looks like it was selecting the wrong ion-content when in use on tabs that were not tab 1. I'll work on a fix for this.

Can you try this dev build and see if it fixes the issue for you?

npm i @ionic/[email protected]

Can you try this dev build and see if it fixes the issue for you?

npm i @ionic/[email protected]

Now it fails from the beginning:

image

New Stackblitz

Did I miss anything?

Nope, I think I just gave you a bad build. Try this one:

npm i @ionic/[email protected]

Good! This work well in my production environment!!

Nope, I think I just gave you a bad build. Try this one:

npm i @ionic/[email protected]

Now it works but somehow the fading animation is "flashing" the first time you enter a tab (I guess because after that it is on the stack so it is not initialised again), it is just a flash but doesn't look very nice...

out3

Link to Stackblitz

Yeah that one is a known issue. I'm currently working on that separately 馃憤. Glad it's working now in your tabbed application.

Thanks for the issue. This issue has been fixed and will be available in an upcoming release of Ionic Framework.

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vswarte picture vswarte  路  3Comments

masimplo picture masimplo  路  3Comments

alan-agius4 picture alan-agius4  路  3Comments

BilelKrichen picture BilelKrichen  路  3Comments

daveshirman picture daveshirman  路  3Comments