question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No onChange prop for <Formik/>?

See original GitHub issue

❓Question

I’ve looked on the docs, I’ve looked on the issues and still have no clue about this.

The <Formik/> component has a onSubmit prop but not an onChange prop?

What I want to do: Imagine an array of strings and everytime the users writes, I check of all the inputs are empty, I add a new one preventing him to click on “add new”. Don’t know if this is clear enough.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:128
  • Comments:48 (2 by maintainers)

github_iconTop GitHub Comments

217reactions
mintyPTcommented, Jun 25, 2019

@buglessir

For those seeing this after the fact, here’s what happened:

  1. I posted a question (seen above);
  2. @buglessir did not properly read the question and posted a totally wrong answer;
  3. I posted a reply to the answer (can be seen above);
  4. @buglessir removed his comment and added a “thumb down” on my reply and question.

Hey, @buglessir what you just did is childish, despicable even. Thank you for your open source spirit. Keep at it, you’re doing a great job.

97reactions
AlonMizcommented, Oct 22, 2019

It would be nice to have an onChange method to Formik with the latest form values.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to listen to Formik onChange event in React?
I am using Formik in my React project. I want to observe (or listen to) the changes of form values. But does not...
Read more >
Why is OnChange not working when used in Formik?
1. Try to put what you wrote inside the render prop as child of the <Formik> Element in the same way is in...
Read more >
API Reference - Formik
Returns true if values are not deeply equal from initial values, false otherwise. dirty is a readonly computed property and should not be...
Read more >
A guide to React forms and events using Formik
​​React does not automatically detect changes in the input element. For that, we use an onChange ​ form event to check for changes....
Read more >
React Formik : how to use custom onChange and onBlur
JavaScript : React Formik : how to use custom onChange and onBlur [ Gift : Animated Search Engine : https://bit.ly/AnimSearch ] JavaScript ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found