Skip to content

fix(S2): React 19 and storybook fixes #8359

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

reidbarber
Copy link
Member

@reidbarber reidbarber commented Jun 6, 2025

  • Fixes CardView story formats
  • Fixes inert value error (for React 19) in Skeleton and RAC Tabs
  • Fixes empty src string error in Image

✅ 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:

Check S2 CardView and ActionBar stories and verify they render without issues.

🧢 Your Project:

@reidbarber reidbarber changed the title fix(S2): React 19 and storybook fixes: fix(S2): React 19 and storybook fixes Jun 6, 2025
@rspbot
Copy link

rspbot commented Jun 6, 2025

Build successful! 🎉

selectionMode: 'multiple'
selectionMode: 'multiple',
decorators: [
(Story, {viewMode}) => <Story viewMode={viewMode} />
Copy link
Member

Choose a reason for hiding this comment

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

Can you add this in the ActionBar example with CardView too? Looks like it's horizontally scrolling at the moment

Copy link
Member Author

Choose a reason for hiding this comment

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

Looks like viewMode isn't actually making it into the story from the decorator, so I need to fix that first.

Copy link
Member

Choose a reason for hiding this comment

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

I've been poking around locally, the viewMode doesn't seem to have been working for quite some time actually, regardless if you run the storybook in docs mode or not. Still bisecting

Copy link
Member

Choose a reason for hiding this comment

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

Apparently something from #7435? Thats when viewMode becomes undefined for me locally but nothing in the PR jumps out to me

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