`dirtyFieldsSinceLastSubmit` is always undefined.
See original GitHub issueAre you submitting a bug report or a feature request?
Bug report. I think.
What is the current behavior?
dirtyFieldsSinceLastSubmit
is always undefined, but dirtySinceLastSubmit
returns the expected boolean value.
What is the expected behavior?
dirtyFieldsSinceLastSubmit
should be an object full of booleans, with a value of true for each field that has a different value from the one when the form was last submitted.
Sandbox Link
https://final-form.org/docs/react-final-form/examples/submission-errors
I don’t have a sandbox set up. If you add dirtyFieldsSinceLastSubmit
to the destructured arguments in the render prop function and console.log it within that same function, it will always return undefined, even after a submission.
What’s your environment?
RFF 6.3.3 FF 4.18.5 Node 10.15.3
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:8
Top Results From Across the Web
Final Form Docs – `FormState`
undefined if none are active. dirty. boolean. true if the form values are different from the values it was initialized with.
Read more >Cannot read property 'submit' of undefined - React
I do not understand why such a message appears. This is my Wizard component. import { Form as FinalForm } from 'react-final ...
Read more >Incident Response - Hybrid Analysis
Note: This method *always* returns an array. If no valid value can be determined the * array will be empty, otherwise it will...
Read more >CHANGELOG.md · 邹昊坤/marmelab-react-admin - Gitee.com
Fix Custom Menu doesn't always receive onMenuClick prop (5435) (fzaninotto) ... new FinalForm form state property dirtyFieldsSinceLastSubmit (3959) (MiMo42) ...
Read more >react-final-form: Versions | Openbase
#400 Passing null served the purpose of disabling the default parse and format ... Note: it will still always run the latest validation...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@erikras - any plans on the next patch/minor release? This feature is in the documentation but absent from the latest release and is now in master. thanks.
@erikras Do you have any plans for release this fix?