Skip to content

UForm @submit event type error #3843

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
simonmaass opened this issue Apr 9, 2025 · 0 comments
Open

UForm @submit event type error #3843

simonmaass opened this issue Apr 9, 2025 · 0 comments
Assignees
Labels
bug Something isn't working v3 #1289

Comments

@simonmaass
Copy link

Environment



Is this bug related to Nuxt or Vue?

Nuxt

Version

https://pkg.pr.new/@nuxt/ui@3deed4c

Reproduction

not working with: "@nuxt/ui": "https://pkg.pr.new/@nuxt/ui@3deed4c",

Description

Since upgrading i get the following error:

Type '(event: FormSubmitEvent) => Promise' is not assignable to type '(payload: FormSubmitEvent) => void'.
Types of parameters 'event' and 'payload' are incompatible.
Type 'FormSubmitEvent' is not assignable to type 'FormSubmitEvent<{ email: string; firstName: string; lastName: string; phone: string; terms: boolean; attachmentUri?: string | undefined; comment?: string | undefined; }>'.
Type 'FormSubmitEvent' is not assignable to type '{ data: { email: string; firstName: string; lastName: string; phone: string; terms: boolean; attachmentUri?: string | undefined; comment?: string | undefined; }; }'.
Types of property 'data' are incompatible.
Type '{}' is missing the following properties from type '{ email: string; firstName: string; lastName: string; phone: string; terms: boolean; attachmentUri?: string | undefined; comment?: string | undefined; }': email, firstName, lastName, phone, termsts-plugin(2322)

(property) onSubmit?: ((payload: FormSubmitEvent) => void) | undefined

Additional context

was working in 3.0.2

Logs

@simonmaass simonmaass added bug Something isn't working triage v3 #1289 labels Apr 9, 2025
@romhml romhml removed the triage label Apr 9, 2025
@romhml romhml self-assigned this Apr 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v3 #1289
Projects
None yet
Development

No branches or pull requests

2 participants