Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49083

Commenting out causes issues

$
0
0

Somewhat related to another post I made about seeing strange errors like:
Uncaught (in promise) TypeError: Cannot read property 'tab' of null

I found that if I HTML comment out a <!--ion-tab-button--> within a <ion-tab-bar> it causes that error when navigating to anything to the right off that navigation item. When I look at the array returned by childNodes on the line const activeChild = childNodes.find((child) => child.props.tab === activeTab); it has more items in it than it should!

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 49083

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>