Fixed startCollapsed function

If the startCollapsed function is set to ‘accordion’ and the state is
switched to ‘tabs’, the first tab opens.