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

CalciteTabNav throwing console.error on load #9057

Open
2 of 6 tasks
nikki-lea opened this issue Apr 3, 2024 · 5 comments
Open
2 of 6 tasks

CalciteTabNav throwing console.error on load #9057

nikki-lea opened this issue Apr 3, 2024 · 5 comments
Labels
0 - new New issues that need assignment. ArcGIS Enterprise Issues logged by ArcGIS Enterprise team members bug Bug reports for broken functionality. Issues should include a reproduction of the bug. calcite-components Issues specific to the @esri/calcite-components package. impact - p3 - not time sensitive User set priority impact status of p3 - not time sensitive p - low Issue is non core or affecting less that 10% of people using the library spike complete Issues that have a research spike completed and dev work can proceed
Milestone

Comments

@nikki-lea
Copy link

Check existing issues

Actual Behavior

Console errors showing up on loading studio project

Expected Behavior

No console errors should appear

Reproduction Sample

Not reproducible outside studio

Reproduction Steps

  1. In studio, open a project and switch tabs
  2. Click the logo in the top left to navigate back to the landing page
  3. Open a project again
  4. Error may show in the console

Reproduction Version

2.7.1

Relevant Info

TypeError: Cannot read properties of undefined (reading 'getBoundingClientRect')
    at Array.eval (tab-nav.js:323:55)
    at consume (index.js:4130:21)
    at flush (index.js:4163:5) undefined

I confirm the error stops happening if I made the following changes:

  1. Add an optional check on tabTitleContainer on lines 319 & 321 here - https://github.com/Esri/calcite-design-system/blob/main/packages/calcite-components/src/components/tab-nav/tab-nav.tsx#L319
  2. Check that containerBounds is defined in the if statements conditions on line 330 & 337 in the above file

Regression?

No response

Priority impact

p4 - not time sensitive

Impact

No response

Calcite package

  • @esri/calcite-components
  • @esri/calcite-components-angular
  • @esri/calcite-components-react
  • @esri/calcite-design-tokens
  • @esri/eslint-plugin-calcite-components

Esri team

ArcGIS Enterprise

@nikki-lea nikki-lea added 0 - new New issues that need assignment. bug Bug reports for broken functionality. Issues should include a reproduction of the bug. needs triage Planning workflow - pending design/dev review. labels Apr 3, 2024
@github-actions github-actions bot added ArcGIS Enterprise Issues logged by ArcGIS Enterprise team members impact - p3 - not time sensitive User set priority impact status of p3 - not time sensitive calcite-components Issues specific to the @esri/calcite-components package. labels Apr 3, 2024
@geospatialem geospatialem added p - low Issue is non core or affecting less that 10% of people using the library need more info Issues that are missing information and/or a clear, actionable description. labels Apr 15, 2024
@nikki-lea
Copy link
Author

nikki-lea commented May 13, 2024

Apologies for the delay @jcfranco, I met with you regarding this issue and mentioned that I would provide a test server in which the error could be reproduced - it took us a while for our version of calcite to get updated in main to where the error is now reproducible! The test server that you can use is https://etait.esri.com/portal/apps/knowledge-studio/landing, the error should show up on opening any existing project listed. Note to devs: Please ping Nicole Bauer or Emma Tait for creds.

@geospatialem geospatialem added the spike Issues that need quick investigations for time estimations, prioritization, or a quick assessment. label May 28, 2024
@geospatialem geospatialem added 1 - assigned Issues that are assigned to a sprint and a team member. and removed 0 - new New issues that need assignment. labels May 28, 2024
@geospatialem geospatialem removed the needs triage Planning workflow - pending design/dev review. label May 28, 2024
@jcfranco
Copy link
Member

Belated thanks, @nikki-lea!

This issue occurs because tab-titles are activated during initialization and the tab-nav has not rendered before the tab-scrolling logic takes place.

@jcfranco jcfranco removed the need more info Issues that are missing information and/or a clear, actionable description. label Sep 16, 2024
@jcfranco
Copy link
Member

This might benefit from #10310, so I'd like to propose holding this off until that's landed.

@nikki-lea confirmed that the updated timeline should be fine.

@jcfranco jcfranco added blocked This issue is blocked by another issue. spike complete Issues that have a research spike completed and dev work can proceed labels Sep 16, 2024
@github-actions github-actions bot added 0 - new New issues that need assignment. needs milestone Planning workflow - pending milestone assignment, has priority and/or estimate. and removed spike Issues that need quick investigations for time estimations, prioritization, or a quick assessment. 1 - assigned Issues that are assigned to a sprint and a team member. labels Sep 16, 2024
Copy link
Contributor

cc @geospatialem, @brittneytewks

@geospatialem geospatialem removed the needs milestone Planning workflow - pending milestone assignment, has priority and/or estimate. label Sep 16, 2024
@geospatialem geospatialem added this to the Stalled milestone Sep 16, 2024
Copy link
Contributor

Issue #10310 has been closed, this issue is ready for re-evaluation.

cc @geospatialem,@DitwanP

@github-actions github-actions bot removed the blocked This issue is blocked by another issue. label Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0 - new New issues that need assignment. ArcGIS Enterprise Issues logged by ArcGIS Enterprise team members bug Bug reports for broken functionality. Issues should include a reproduction of the bug. calcite-components Issues specific to the @esri/calcite-components package. impact - p3 - not time sensitive User set priority impact status of p3 - not time sensitive p - low Issue is non core or affecting less that 10% of people using the library spike complete Issues that have a research spike completed and dev work can proceed
Projects
None yet
Development

No branches or pull requests

3 participants