jaredpalmer / formik

Build forms in React, without the tears 😭
https://formik.org
Apache License 2.0
33.71k stars 2.77k forks source link

Help to Identify which button is clicked when the user has multiple s… #3859

Open toqeer-hussain opened 11 months ago

toqeer-hussain commented 11 months ago

…ubmit button actions like

(Save and Continue, Save, Save for Future, Save and Exit ).

The user passes two arguments to handleSubmit the first parameter is FormEvent and the second parameter is an extra argument. Users can pass only an extra argument as first a parameter.

The extra argument is passed and 3rd argument to the onSubmit. That helps the user to identify which action he needs to proceed based upon.

changeset-bot[bot] commented 11 months ago

⚠️ No Changeset found

Latest commit: 5391c8f689917d9659d3d4213372ba750722e65b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

vercel[bot] commented 11 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
formik-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 5, 2023 4:18pm
codesandbox-ci[bot] commented 11 months ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 5391c8f689917d9659d3d4213372ba750722e65b:

Sandbox Source
Formik TypeScript Playground (forked) Configuration
toqeer-hussain commented 10 months ago

@probablyup @jaredpalmer Can you please review this PR because it's pending your approval? If there is any need of improvement Please guide me.

toqeer-hussain commented 9 months ago

@probablyup @jaredpalmer soft reminder.