Dropdown menu won't collapse

Hi there,

I’ve made a dropdown menu with variables, but for some reason my menu won’t collapse. I’ve made a component with a collapsed and expanded variant - however it won’t let me select the collapsed option for some reason, and thus won’t collapse on click.

Here’s the Figma file

Any idea what I’ve done wrong or why this isn’t working?

Thanks a million!