-
Notifications
You must be signed in to change notification settings - Fork 32
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
fix(Tabs): fix error with a single Tabs.Content as children #2534
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 07e7443:
|
5c7c41f
to
4d4c286
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👏
packages/dnb-eufemia/src/components/tabs/__tests__/Tabs.screenshot.test.ts
Outdated
Show resolved
Hide resolved
packages/dnb-eufemia/src/components/tabs/__tests__/Tabs.screenshot.test.ts
Outdated
Show resolved
Hide resolved
## [10.4.2](v10.4.1...v10.4.2) (2023-07-27) ### 🐛 Bug Fixes * **Tabs:** fix error with a single Tabs.Content as children ([#2534](#2534)) ([215e52c](215e52c))
🎉 This PR is included in version 10.4.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This should:
children
data
prop has a single element and when Tabs component has a single Tabs.content aschildren
.Here's how it looked and behaved when providing Tabs component with a single Tabs.Content as children:
And when pressing the Tabs title you would get:
Now after the fix, the same code will not result in an error, and it will look like this: