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
onChange event gets fired but there is no differentiation that i can see between a user updating the form and default values being loaded.
wanting to save the initial formData to compare against when the user changes the form data
thanks for your help ;)
The text was updated successfully, but these errors were encountered:
@brada11en You are right there is not easily discernable way to know whether an onChange was the result of a user entering the data and the default logic kicking in an specifying defaults. Upon the first render with empty form data and defaults in the schema, one would get an onChange that was the result of the defaults being added. But if one is using conditions to expand chunks of the schema based on a user's answer, then it is likely that there will be 2 onChange() calls, one for the user's data change and a second to notify of the additional default values added. In that situation, the first onChange() will get an id for the field the user changes and the second onChange() will NOT get an id. So it may be possible for you to trigger off of whether onChange() gets the optional id passed to it to detect human interactions vs. defaults.
Prerequisites
What theme are you using?
antd
What is your question?
onChange event gets fired but there is no differentiation that i can see between a user updating the form and default values being loaded.
wanting to save the initial formData to compare against when the user changes the form data
thanks for your help ;)
The text was updated successfully, but these errors were encountered: