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

Accordion is using height to manage visibility #168

Open
pierry01 opened this issue Oct 23, 2024 · 0 comments
Open

Accordion is using height to manage visibility #168

pierry01 opened this issue Oct 23, 2024 · 0 comments

Comments

@pierry01
Copy link
Contributor

pierry01 commented Oct 23, 2024

ACCORDION WITH PROBLEMS

In the Shadcn Accordion implementation, closing the Accordion applies the "hidden" class to the content, which causes it to disappear.

In our implementation, however, we are using inline JavaScript styles to set the height to zero instead of applying the "hidden" class.

This approach is causing issues when using a FormField with a FormFieldError element inside the Accordion.

The implementation should be along the lines of shadcn
https://ui.shadcn.com/docs/components/accordion

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

No branches or pull requests

1 participant