Add: use:enhance for Entry forms

This commit is contained in:
Donatas Kirda 2024-05-20 12:19:05 +03:00
parent 04ea412dd4
commit 9a3295adc4
Signed by: bloodwiing
GPG Key ID: 63020D8D3F4A164F

View File

@ -1,4 +1,5 @@
<script>
import { enhance } from "$app/forms";
import Glowfx from "$comp/fx/glowfx.svelte";
import { createEventDispatcher } from "svelte";
@ -57,7 +58,7 @@
}
</style>
<form class="entryForm" {action} {method} on:submit={(e) => {dispatch('submit', e);}} {...$$restProps}>
<form class="entryForm" {action} {method} on:submit={(e) => {dispatch('submit', e);}} {...$$restProps} use:enhance>
<div class="name">
<h1 class="typeDisplay noSelect">{formName}</h1>
<slot name="belowName" />