Init state of a dialog or dropdown

Alright this might be dumb but..
I’m using both dropdowns and dialogs to let users navigate to other pages. However, when the next page loads, the dropdown or dialog remains open. How do I change that initial state? Putting a ‘close’ workflow on every link seems cumbersome and unintuitive…

Hi Niels :waving_hand:

You can change a couple of settings in your elements, you could for example, in the select element, toggle the “Close on select” option.

1 Like

Hi Agustin,

So I use a ‘Sheet’ dialog for my mobile menu, but once I click a link, it’s still open on the next page. I don’t see any option like ‘close on click’, and no ‘init state’ or anything. Should I be using a different element then?