[TASK] Set expanded state on the has-dropdown element