Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: iOS condense header breaks page animation #29280

Closed
3 tasks done
KevinLeneschmidt opened this issue Apr 5, 2024 · 2 comments
Closed
3 tasks done

bug: iOS condense header breaks page animation #29280

KevinLeneschmidt opened this issue Apr 5, 2024 · 2 comments

Comments

@KevinLeneschmidt
Copy link

KevinLeneschmidt commented Apr 5, 2024

Prerequisites

Ionic Framework Version

v7.x

Current Behavior

I want to use 2 headers like shown in the docs condense header 1 (for ios) and used the correct props like transfluent and collape, but this breaks my page transitions. My dev console shows following error:

Cannot read properties of null (reading ‘getBoundingClientRect’)
at createLargeTitleTransition (chunk-GHBCID63.js?v=0ecf4cc5:57:64)
at iosTransitionAnimation (chunk-GHBCID63.js?v=0ecf4cc5:272:35)
at animation (chunk-QARUQ2O5.js?v=0ecf4cc5:977:17)

If i remove the second header, my page transitions work like usual. It is also working when i remove the ion-buttons from the toolbar - thats also strange.

I have a very basic “IonBase” component, which I use on every page. I also created a repo

Expected Behavior

Basic page transition without errors. Currently, there is no transition.

Steps to Reproduce

Clone the repo

Code Reproduction URL

https://github.com/KevinLeneschmidt/ionic-vue-ios-header

Ionic Info

Ionic:

Ionic CLI : 7.2.0
Ionic Framework : @ionic/vue 7.8.1

Capacitor:

Capacitor CLI : 5.7.4
@capacitor/android : not installed
@capacitor/core : 5.7.4
@capacitor/ios : 5.7.4

Utility:

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

System:

NodeJS : v21.7.1
npm : 10.5.0
OS : macOS Unknown

Additional Information

I also opened a topic in the ionic forum: forum

@KevinLeneschmidt KevinLeneschmidt changed the title bug: bug: iOS condense header breaks page animation Apr 5, 2024
@KevinLeneschmidt
Copy link
Author

I tested around and found out that the problem was the missing text on the ion-back-button - i didn´t want to use a text, so i just set it to an empty string, but that was the problem. If i set it to a string with a value, everything works fine... That is something they should change about the ion-back-button. I want to be able to remove the text. If i set it to null or undefined, the 'Back' text appears.

Copy link

ionitron-bot bot commented May 5, 2024

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.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators May 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant