Skip to content

UForm @submit event type error #3843

Open
@simonmaass

Description

@simonmaass

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingv3#1289

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions