Auto-closing Dialogs upon submission #1097
Unanswered
nthskyradiated
asked this question in
Help
Replies: 1 comment 1 reply
-
Hey, @nthskyradiated Without enough context, I'm just speculating, but I believe binding the <script>
let open = false;
function submit_form(){
// do something
open = false;
}
</script>
<Dialog.Root bind:open>
</Dialog.Root> |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Hunter / Everyone,
Is there a way to auto-close dialogs upon submission / confirmation?
Right now I find they only close with the close button or by clicking outside them.
Thanks for the great work!
Beta Was this translation helpful? Give feedback.
All reactions