jaredpalmer / jaredpalmer/formik

submitForm doesn't throw an error

Open
#2,249 9 comments 15 reactions 0 assignees View on GitHub
stale
Dominant language
TypeScript
Stars
34.3k
Forks
2.8k
PR merge metrics
No merged PRs in 30d

Description

## 🐛 Bug report

### Current Behavior

The promise don't rejected if form is invalid.

### Expected behavior

The promise will be rejected if form is invalid.

### Reproducible example

https://codesandbox.io/s/amazing-bas-y5jq4

### Suggested solution(s)

### Additional context

### Your environment

| Software | Version(s) |
| ---------------- | ---------- |
| Formik | 2.1.2
| React | 16.12.0
| Browser | Chrome 79.0.3945.117

Contributor guide

Open the contributing guide

Research direction

Start with Formik's submitForm entry point and compare its behavior with the invalid-form reproduction in the linked CodeSandbox. Review the existing validation and submission tests, if present, and confirm that an invalid form produces a rejected promise without regressing valid submissions.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.