Skip to content

fix: Fixes tables with infinite expandable rows#4235

Merged
pan-kot merged 1 commit intomainfrom
fix-expandable-table-infinite-loop
Feb 9, 2026
Merged

fix: Fixes tables with infinite expandable rows#4235
pan-kot merged 1 commit intomainfrom
fix-expandable-table-infinite-loop

Conversation

@pan-kot
Copy link
Member

@pan-kot pan-kot commented Feb 9, 2026

Description

A small fix that allows expandable rows to be infinite, which is useful in tests.

How has this been tested?

  • New unit test
Review checklist

The following items are to be evaluated by the author(s) and the reviewer(s).

Correctness

  • Changes include appropriate documentation updates.
  • Changes are backward-compatible if not indicated, see CONTRIBUTING.md.
  • Changes do not include unsupported browser features, see CONTRIBUTING.md.
  • Changes were manually tested for accessibility, see accessibility guidelines.

Security

Testing

  • Changes are covered with new/existing unit tests?
  • Changes are covered with new/existing integration tests?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@pan-kot pan-kot requested a review from a team as a code owner February 9, 2026 17:03
@pan-kot pan-kot requested review from Harsh-Anand-Singh and removed request for a team February 9, 2026 17:03

if (visible) {
visibleItems.push(item);
children.forEach((child, index) =>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In an earlier version it was necessary to traverse all items even those not expanded. Now it is not needed, and all existing tests still work when making this change.

jperals
jperals previously approved these changes Feb 9, 2026
traverse(
child,
{ level: detail.level + 1, setSize: children.length, posInSet: index + 1, parent: item },
visible && expandedSet.has(item)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick: visible is not needed here

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@pan-kot pan-kot force-pushed the fix-expandable-table-infinite-loop branch from 224f41a to 1ee5450 Compare February 9, 2026 17:17
@pan-kot pan-kot enabled auto-merge February 9, 2026 17:18
@codecov
Copy link

codecov bot commented Feb 9, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.19%. Comparing base (d33207b) to head (1ee5450).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4235      +/-   ##
==========================================
- Coverage   97.19%   97.19%   -0.01%     
==========================================
  Files         886      886              
  Lines       26005    26004       -1     
  Branches     9418     9418              
==========================================
- Hits        25275    25274       -1     
+ Misses        724      683      -41     
- Partials        6       47      +41     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@pan-kot pan-kot added this pull request to the merge queue Feb 9, 2026
Merged via the queue into main with commit 50cfbe3 Feb 9, 2026
79 of 85 checks passed
@pan-kot pan-kot deleted the fix-expandable-table-infinite-loop branch February 9, 2026 18:31
ngynmt pushed a commit to ngynmt/components that referenced this pull request Feb 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants