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