#Why is the <dialog> modal show even when I have not called showModal()?

6 messages · Page 1 of 1 (latest)

vivid stag
#

How can I prevent this behaviour?

dusk lion
#

do you have a sandbox to show the issue?

vivid stag
dusk lion
#

it appears to be your class... but that is interesting

#

if i just comment out your class its not open by default

#

class={${ref.value?.open && 'flex'} h-full w-full flex-col [scrollbar-width:none] backdrop:bg-black/50 max-lg:!max-h-[100%] max-lg:!max-w-[100%] lg:h-4/5 lg:w-[35%] lg:rounded-2xl}

appears to work fine if change the flex to only be applied only when its open