Skip to content

Commit 98e6028

Browse files
committed
Reset form on dialog show
1 parent 6787390 commit 98e6028

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Exceptionless.Web/ClientApp/src/lib/features/stacks/components/AddStackReferenceDialog.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
const { enhance, form: formData } = form;
3232
</script>
3333

34-
<Dialog.Root bind:open>
34+
<Dialog.Root bind:open onOpenChange={() => form.reset()}>
3535
<Dialog.Content class="sm:max-w-[425px]">
3636
<form method="POST" use:enhance>
3737
<Dialog.Header>

0 commit comments

Comments
 (0)