Add: use:enhance for Entry forms
This commit is contained in:
parent
04ea412dd4
commit
9a3295adc4
@ -1,4 +1,5 @@
|
|||||||
<script>
|
<script>
|
||||||
|
import { enhance } from "$app/forms";
|
||||||
import Glowfx from "$comp/fx/glowfx.svelte";
|
import Glowfx from "$comp/fx/glowfx.svelte";
|
||||||
import { createEventDispatcher } from "svelte";
|
import { createEventDispatcher } from "svelte";
|
||||||
|
|
||||||
@ -57,7 +58,7 @@
|
|||||||
}
|
}
|
||||||
</style>
|
</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">
|
<div class="name">
|
||||||
<h1 class="typeDisplay noSelect">{formName}</h1>
|
<h1 class="typeDisplay noSelect">{formName}</h1>
|
||||||
<slot name="belowName" />
|
<slot name="belowName" />
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user