fix: unwanted reset behavior

This commit is contained in:
axel 2025-04-18 22:56:44 +02:00
parent 168409d3c0
commit 078e8db2c7

View File

@ -9,7 +9,15 @@
</script>
<div class="w-full sm:px-6 px-3 py-4 max-w-xl mx-auto mb-12">
<form method="POST" action="?/update" use:enhance>
<form
method="POST"
action="?/update"
use:enhance={() => {
return async ({ update }) => {
update({ reset: false });
};
}}
>
{@render children()}
<div class="flex gap-2 justify-between sm:text-base text-sm">