In Firefox (with the Firebug extension installed), see which CSS classes apply to drop-down lists when expanding and dropping it. If there is a class unique to when the field is in a collapsible state, you can use Javascript to check if the class with the list has this class.
Or, if you control the combobox yourself, you can add or remove a CSS class so that you know what is from this state.
source share