Select to view content in your preferred language

Calcite Tabs creating ResizeObserver type error during DOM rendering (v1.0.0-beta.99)

802
7
01-19-2023 01:08 AM
FC_Basson
MVP Regular Contributor

I need some clarity on the TypeError being generated for Calcite Tabs.

FC_Basson_0-1674118203776.png

It seems the error is generated during the DOM rendering when the tabs are not directly visible in the DOM body, but instead in a parent element such as a calcite-panel.  

The line in the module where the error occurs upon creating a new class reads as follows:

 

 

this.activeIndicatorEl.style.transitionDuration = "0s"

 

 

 It seems as if the "activeIndicatorEl" property is not found.

I have created a CodePen (https://codepen.io/fcbasson/pen/KKByZzV) with two sets of tabs, of which one is within a panel.  Have a look at the browser console when the DOM is rendered to see the errors popping up.

0 Kudos
7 Replies
BenElan
Esri Contributor

Hi @FC_Basson, I was able to reproduce the error and logged a bug:

https://github.com/Esri/calcite-components/issues/6310

Thanks for reporting the issue!

LefterisKoumis
Regular Contributor II


Thank you. I have the same error and I spent hours to resolve it thinking that it is an issue with my script. 

Also I noticed performance issues.

0 Kudos
BenElan
Esri Contributor

Update: this issue is resolved in v1.0.4-next.4

We will be releasing a patch soon, potentially tomorrow

0 Kudos
KittyHurley
Esri Contributor

@FC_Basson@LefterisKoumis Thanks again for reporting!

The issue has been mitigated in both patch releases this week, 1.0.4 and 1.0.5.

WilsonIonara
New Contributor III

I am having the same issue. How do I find and install the patch? Thanks

0 Kudos
LefterisKoumis
Regular Contributor II

@WilsonIonara There is nothing to install. Just update the links to the calcite components to version 1.0.4 or later.

    <script type="module" src="https://js.arcgis.com/calcite-components/1.0.4/calcite.esm.js"></script>
    <link rel="stylesheet" type="text/css" href="https://js.arcgis.com/calcite-components/1.0.4/calcite.css" />
0 Kudos
WilsonIonara
New Contributor III

Since I am using a node package I just changed the stylesheet and it seems to be working! Thank you!

0 Kudos