fix: unwanted reset behavior
This commit is contained in:
parent
168409d3c0
commit
078e8db2c7
@ -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">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user