reset forms on site reload
All checks were successful
deploy / build-and-deploy (push) Successful in 16s

This commit is contained in:
2025-05-24 23:52:27 +02:00
parent ce6325e8dd
commit a9a70b74e9
2 changed files with 7 additions and 1 deletions

View File

@@ -37,6 +37,9 @@ import Input from '@components/input/Input.svelte';
const content = document.getElementById('content') as HTMLTextAreaElement;
const email = document.getElementById('email') as HTMLInputElement;
// reset form on site (re-)load
form.reset();
type.addEventListener('change', () => {
if (type.value === 'website-feedback') {
// content input