Skip to content

Accordion is using height to manage visibility #168

@pierry01

Description

@pierry01

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions