use:enhance directive for svelte protection
This commit is contained in:
parent
8e2a5ed8bf
commit
7211f68b07
1 changed files with 2 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { onMount } from 'svelte';
|
import { onMount } from 'svelte';
|
||||||
|
import { enhance } from '$app/forms';
|
||||||
import ContactCanvas from '$lib/components/ContactCanvas.svelte';
|
import ContactCanvas from '$lib/components/ContactCanvas.svelte';
|
||||||
import gsap from 'gsap';
|
import gsap from 'gsap';
|
||||||
import { SplitText } from 'gsap/SplitText';
|
import { SplitText } from 'gsap/SplitText';
|
||||||
|
|
@ -90,7 +91,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="formwrapper">
|
<div class="formwrapper">
|
||||||
<span class="button button-back" on:click={contactFormClickHandler} on:keydown={contactFormClickHandler} role="button" tabindex="0">← Back</span>
|
<span class="button button-back" on:click={contactFormClickHandler} on:keydown={contactFormClickHandler} role="button" tabindex="0">← Back</span>
|
||||||
<form name="contact" method="POST">
|
<form name="contact" method="POST" use:enhance>
|
||||||
<div class="inputs-flex-row">
|
<div class="inputs-flex-row">
|
||||||
<label for="name">
|
<label for="name">
|
||||||
<!-- <p>How would you like to be addressed?</p> -->
|
<!-- <p>How would you like to be addressed?</p> -->
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue