ElemeFE / ElemeFE/element-react

typescript Property 'onSubmit' does not exist on type Form

Open
#1,037 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.8k
Forks
435
PR merge metrics
No merged PRs in 30d

Description

### Description

Using React With Typescript, the following :

```

```

Causes a type error :

```
Property 'onSubmit' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes & Readonly & Readonly<{ children?: ReactNode; }>'
```

I think this might resolve the problem.

### Reproduce Steps

```

```

### Error Trace (if possible)

N/A

### Solution

add onSubmit prop to FormProps interface : https://github.com/ElemeFE/element-react/pull/1036

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.