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: Cannot set property 'innerText' of null at animateLargeTitle (only iOS | Vue 3)

See original GitHub issue

Bug Report

Ionic version: [ ] 4.x [x] 5.x

Current behavior: Getting an error and animation dont play when navigating from one page to another.
It only happens in iOS.

It behaves exactly the same as in issue #22760 only in vue.

Expected behavior: The error shouldn’t happen and animation should be played.

Steps to reproduce: If an example is still needed i can create a stackblitz.

Ionic info:

Ionic:

   Ionic CLI       : 6.14.1
   Ionic Framework : @ionic/vue 5.6.8

Capacitor:

   Capacitor CLI   : 2.4.7
   @capacitor/core : 2.4.7

Utility:

   cordova-res : 0.15.3
   native-run  : 1.3.0

System:

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

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
liamdebeasicommented, Jun 8, 2021

Thanks! The problem is you have your collapsible large title configured incorrectly. It should look something like this:

<ion-header :translucent="true">
  <ion-toolbar>
    <ion-title> {{ greeting }} </ion-title>
    <ion-buttons slot="end">
      <ion-button router-link="/test" routerDirection="forward" color="dark">
        <ion-icon :icon="timeOutline" size="large" />
      </ion-button>
    </ion-buttons>
  </ion-toolbar>
</ion-header>

<ion-content :fullscreen="true">
  <ion-header collapse="condense">
    <ion-toolbar class="tab-toolbar">
      <ion-title size="large"> {{ greeting }} </ion-title>
    </ion-toolbar>
  </ion-header>
</ion-content>

Making this change resolved the issue on my end. For more information please see the Collapsible Large Titles docs.

1reaction
liamdebeasicommented, Jun 7, 2021

Thanks for the issue. Can you reproduce this in an Ionic starter app and provide a link to the repo?

Read more comments on GitHub >

github_iconTop Results From Across the Web

bug: Cannot set property 'innerText' of null at ... - GitHub
As mentioned, the error only happens in iOS. The error seems to go away when I add slot="end" to the "IonButtons" component in...
Read more >
Cannot set property 'innerText' of null - Stack Overflow
The querySelector() method of the Element interface returns the first element that is a descendant of the element on which it is invoked...
Read more >
Uncaught TypeError: cannot set property 'innerHTML' of null
Commonly you see the Uncaught TypeError: cannot set property innerText of null error if you try to access an HTML element on a...
Read more >
typeError: Cannot set property 'innerText' of null - WordPress.org
I get JS error: typeError: Cannot set property 'innerText' of null when I try. Tried to disable plugins but didn't help…. The page...
Read more >
Cannot set property 'innerHTML' of Null in JavaScript
The "Cannot set property 'innerHTML' of null" error occurs for 2 reasons: Setting the innerHTML property on a null value (DOM element that...
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