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

fix(components): accordion component throws "validateDOMNesting" erro… #2169

Merged
merged 7 commits into from
Mar 3, 2024
Merged

fix(components): accordion component throws "validateDOMNesting" erro… #2169

merged 7 commits into from
Mar 3, 2024

Conversation

kuri-sun
Copy link
Contributor

Closes #2168

📝 Description

The accordion component throws a "validateDOMNesting" error on the storybook

⛳️ Current behavior (updates)

When you open up the Accordion component(Custom with classNames) on the storyboard, you will get an error console message that says "validateDOMNesting(...) cannot appear as a descendant of p".(the pic below)
error

🚀 New behavior

There are no errors in the console.

💣 Is this a breaking change (Yes/No):

No.

📝 Additional Information

Copy link

vercel bot commented Dec 26, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nextui-storybook-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 3, 2024 10:38pm

Copy link

changeset-bot bot commented Dec 26, 2023

⚠️ No Changeset found

Latest commit: db21edf

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

vercel bot commented Dec 26, 2023

@kuri-sun is attempting to deploy a commit to the NextUI Team on Vercel.

A member of the Team first needs to authorize it.

.changeset/silver-walls-drum.md Outdated Show resolved Hide resolved
@jrgarciadev
Copy link
Member

@kuri-sun sorry, could you please modify this component code as well? https://nextui.org/docs/components/accordion#start-content

@kuri-sun
Copy link
Contributor Author

kuri-sun commented Feb 8, 2024

@jrgarciadev Absolutely

@kuri-sun
Copy link
Contributor Author

@jrgarciadev The requested change was modified. Thank you! 😄

@jrgarciadev
Copy link
Member

@kuri-sun could you please update this as well? https://vscode.dev/github/nextui-org/nextui/blob/main/apps/docs/content/components/accordion/custom-styles.ts#L217

@kuri-sun
Copy link
Contributor Author

kuri-sun commented Mar 3, 2024

@junior Of course, immediately!

@jrgarciadev jrgarciadev merged commit f63b20c into heroui-inc:main Mar 3, 2024
7 of 8 checks passed
@kuri-sun kuri-sun deleted the fix/components/accordion-storyboard-throws-validateDOMnesting-error branch March 4, 2024 04:50
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.

[BUG] - Accordion component throws "validateDOMNesting" error on the storybook.
2 participants