question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: ion-header disappears on mobile browser when keyboard opens - tabbed app

See original GitHub issue

Prerequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x

Current Behavior

Using a tabbed app in the mobile browser the ion-header is being pushed off the top when the mobile keyboard opens. Please note this issue only occurs when fullscreen is set to true.

Expected Behavior

Header stays positioned at the top.

Steps to Reproduce

Hello.

To create the bug:

  1. Create tabbed app for a mobile browser
  2. On a tab page place a ion-header and ion-content with fullscreen set to true
  3. Add a div to the tab page with a view height of roughly 70 depending on your device
  4. Add a ion-input to activate the mobile keyboard
  5. ion-header will get pushed off the screen

Sample code below:

<ion-header [translucent]="true"> <ion-toolbar> <ion-title> Tab 1 </ion-title> </ion-toolbar> </ion-header>

<ion-content [fullscreen]="true"> <div style="height: 70vh"> Mobile Device Fullscreen Header Bug - [fullscreen]="true" </div> <ion-item> <ion-input placeholder="Click Here - Watch Header Disappear"></ion-input> </ion-item> </ion-content>

Code Reproduction URL

No response

Ionic Info

Ionic:

Ionic CLI : 5.4.4 (C:\Users\Admin\AppData\Roaming\npm\node_modules\ionic) Ionic Framework : @ionic/angular 6.1.0 @angular-devkit/build-angular : 13.2.6 @angular-devkit/schematics : 13.2.6 @angular/cli : 13.2.6 @ionic/angular-toolkit : 6.1.0

Utility:

cordova-res : not installed native-run : not installed

System:

NodeJS : v14.17.0 (C:\Program Files\nodejs\node.exe) npm : 6.14.13 OS : Windows 10

Additional Information

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
liamdebeasicommented, Apr 19, 2022

Thanks! I can reproduce this behavior. This appears to be caused by https://github.com/ionic-team/ionic-framework/issues/18532, so I am going to merge the two issues. The linked has to do with Cordova/Capacitor apps, but it is the same problem in a web browser as well.

0reactions
ionitron-bot[bot]commented, May 19, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix ion-header to top of page when keyboard appears in Ionic ...
This means that the ion-header disappears. I would like this to remain visible at the top of the screen at all times.
Read more >
Keyboard disappears as soon as I type something. How to fix ...
Yes, and tried different keyboards, nothing worked. It happens only when I'm trying to type on a text in an open tab, it...
Read more >
Ion-header, IonToolBar get some issue layout relate with ion ...
Hello, I started using ionic vue to build the tabs default by the first time I created the app. Then I am tab1...
Read more >
Configuring Ionic 2 Web Applications - Damir's Corner
In order to build a pure web application without packaging for a specific mobile platform, you need to target the browser platform.
Read more >
Android Search Menu Item Disappears When Pressing Back
Gboard is a keyboard app developed by Google for Android and iOS. ... Opera can organize multiple pages into one browsing window using...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found