From c92811bce90ffeb7cb3169cc6dd0f34bdfd0351e Mon Sep 17 00:00:00 2001 From: Luke Bennett Date: Mon, 10 Aug 2026 16:40:12 +1000 Subject: [PATCH] Fix event type --- apps/docs/src/examples/forms/validation.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/docs/src/examples/forms/validation.tsx b/apps/docs/src/examples/forms/validation.tsx index 23928cf0..943e1442 100644 --- a/apps/docs/src/examples/forms/validation.tsx +++ b/apps/docs/src/examples/forms/validation.tsx @@ -4,7 +4,7 @@ import { Checkbox } from '@luke-ui/react/checkbox'; import { ComboboxField } from '@luke-ui/react/combobox-field'; import { ComboboxItem } from '@luke-ui/react/combobox-field/primitive'; import { TextField } from '@luke-ui/react/text-field'; -import type { FormEvent } from 'react'; +import type { SubmitEvent } from 'react'; import { useState } from 'react'; const countries = [ @@ -19,7 +19,7 @@ type Errors = { country?: string; email?: string; terms?: string }; export default () => { const [errors, setErrors] = useState({}); - function handleSubmit(event: FormEvent) { + function handleSubmit(event: SubmitEvent) { event.preventDefault(); const data = new FormData(event.currentTarget); const emailValue = data.get('emailAddress'); -- 2.51.2