How to open accordion when setting error? I have custom validation on an element using ['#element_validate'].

But the element is within an accordion item within an accordion and the error doesn't signal to the parent elements to open up when the form is reloaded with the errors.

Is there a way to signal to an elements groups to open up when doing $form_state-&gt;setError($element) on an element?
I have added this an issue on the field_group module and have posted a patch: https://www.drupal.org/project/field_group/issues/2923831