You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 23, 2022. It is now read-only.
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
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 totrue
when a user changes any constituent field whilesubmitted==true
, andretouched=false
is set when submitting again. However,retouched
is not affected by changes whilepending==true
which seems inconsistent with it's purpose. Perhaps I've misunderstood, but I couldn't find any documentation onretouched
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 beforepromise
returns, interact with the form to change a field.Expected Behavior
Changing a field at any point after
submit
has been called will setretouched=true
.Actual Behavior
Changing a field before
promise
has resolved doesn't setretouched=true
Reproducible Code Example
https://codepen.io/Multihuntr/pen/royaxL
The text was updated successfully, but these errors were encountered: