I was wondering what is considered the "best" way to determine if a PanelBarItem is expanded or not? So far what I've been able to come up with is to check the "aria-expanded" property or see if the child <ul> is visible, both of which feel a bit dirty. Is there a better way, or is one of these two methods considered "better" than the other?
For context, I'm retrieving the item to check by using jquery.closest from one of the child items. Example:
child = $(
parent = child.closest(
// Perform check here