You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 29, 2024. It is now read-only.
Is it possible to programmatically open and close panels? One rationale for this functionality is if the accordion contains form elements and there is a validation error inside a closed panel, we open it up.
The text was updated successfully, but these errors were encountered:
Unfortunately there isn't an easy way to do it at the moment without some refactoring. I can definitely see the need for it though. I'll look into it at some point (unless you want to take a stab at it). In the mean time you could programmatically trigger a click DOM event on the relevant element: https://ember-twiddle.com/b1f94c70709e222102f45b423b2cc4d8?openFiles=controllers.application.js%2C Not the cleanest approach but it works.
Thanks for the information and quick response. I'm just triggering a click, as you suggested, which works fine for now. I don't think I'll be able to look into it right now, though.
Thanks for building this!
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Is it possible to programmatically open and close panels? One rationale for this functionality is if the accordion contains form elements and there is a validation error inside a closed panel, we open it up.
The text was updated successfully, but these errors were encountered: