diff --git a/src/components/ContactForm.vue b/src/components/ContactForm.vue index ee8d04b..a378d23 100644 --- a/src/components/ContactForm.vue +++ b/src/components/ContactForm.vue @@ -7,6 +7,17 @@ const isSubmitting = ref(false); const TURNSTILE_SITE_KEY = import.meta.env.PUBLIC_TURNSTILE_SITE_KEY || '{TURNSTILE_SITE_KEY}'; +// Data for form inputs with two-way binding +const formData = ref({ + name: '', + email: '', + phone: '', + title: '', + company: '', + message: '', + turnstileToken: '' +}); + // Cloudflare Turnstile onMounted(() => { // Dynamically load the Turnstile widget @@ -32,17 +43,6 @@ onMounted(() => { }; }); -// Data for form inputs with two-way binding -const formData = ref({ - name: '', - email: '', - phone: '', - title: '', - company: '', - message: '', - turnstileToken: '' -}); - // Set character limits const nameMaxLength = 100; const emailMaxLength = 150;