Skip to content
This repository has been archived by the owner on Aug 23, 2022. It is now read-only.

retouched is not set to true if user changes fields while pending==true #1195

Open
Multihuntr opened this issue Dec 21, 2018 · 0 comments
Open

Comments

@Multihuntr
Copy link

The Problem

The purpose of the retouched field seems to be for indicating if the submitted information is different to the current information in the form. It is set to true when a user changes any constituent field while submitted==true, and retouched=false is set when submitting again. However, retouched is not affected by changes while pending==true which seems inconsistent with it's purpose. Perhaps I've misunderstood, but I couldn't find any documentation on retouched to check if this is intended behaviour. If there is documentation that I've missed, then I apologise. Else if this is intended, but not documented, can it become documented?

Steps to Reproduce

Call dispatch(actions.submit(formName, promise)), and before promise returns, interact with the form to change a field.

Expected Behavior

Changing a field at any point after submit has been called will set retouched=true.

Actual Behavior

Changing a field before promise has resolved doesn't set retouched=true

Reproducible Code Example

https://codepen.io/Multihuntr/pen/royaxL

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant