Skip to content

fix: Tabs infinite loop#7487

Merged
devongovett merged 2 commits into
mainfrom
fix-tabs-infinite-loop
Dec 7, 2024
Merged

fix: Tabs infinite loop#7487
devongovett merged 2 commits into
mainfrom
fix-tabs-infinite-loop

Conversation

@snowystinger
Copy link
Copy Markdown
Member

@snowystinger snowystinger commented Dec 6, 2024

Closes

An infinite loop and wrong items in the tablist could occur if a collection was provided as a child of the TabPanel because we provide a Custom Collection Renderer context, which was leaking down into the TabPanels children. This stops that from happening unintentionally

This could be observed in the S2 Popover story for 'control center' where a menu was used inside a tabpanel

✅ Pull Request Checklist:

  • Included link to corresponding React Spectrum GitHub Issue.
  • Added/updated unit tests and storybook for this change (for new code or code which already has tests).
  • Filled out test instructions.
  • Updated documentation (if it already exists for this component).
  • Looked at the Accessibility Practices for this feature - Aria Practices

📝 Test Instructions:

🧢 Your Project:

@snowystinger snowystinger changed the title fix: Tabs infinite loop if a collection is provided inside the tab panel fix: Tabs infinite loop Dec 6, 2024
@rspbot
Copy link
Copy Markdown

rspbot commented Dec 6, 2024

@devongovett devongovett added this pull request to the merge queue Dec 7, 2024
Merged via the queue into main with commit 8228e4e Dec 7, 2024
@devongovett devongovett deleted the fix-tabs-infinite-loop branch December 7, 2024 01:02
LFDanLu added a commit that referenced this pull request Jan 11, 2025
github-merge-queue Bot pushed a commit that referenced this pull request Jan 13, 2025
* Revert "chore: Update JSDocs and apis for release (#7595)"

This reverts commit 101d077.

* Revert "fix: Tabs infinite loop (#7487)"

This reverts commit 8228e4e.

* Revert "fix: Tabs from testing (#7463)"

This reverts commit 494e01c.

* Revert "feat: Tabs collapse behaviour (#7202)"

This reverts commit cd4da2b.

* add stuff back that we still want

* update lock
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.

4 participants