Programmatically setting values are causing isDirty and isTouched to be set to true. #991
Unanswered
asadbekabduvoitov-nordra
asked this question in
Ideas
Replies: 1 comment 2 replies
-
Hi! Sounds like what you're asking for already exists: form.setFieldValue("employee_id", String(data?.split(",")[0]), { dontUpdateMeta: true }); |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working on a project, where id will be automatically generated when modal is opened. And my code looks like something like this:
Where I'm programmatically setting value into input field. But this way of setting value is causing isDirty and isTouched to be set to true, and as a result my global error warning is getting rendered, even without user interacts with the given fields. And I couldn't any find any way to fix the issue. Even I asked from AI:
Does framework provide way to set values without update filed states ?
If not it would be better to see this feature in upcoming versions 🙌.
Beta Was this translation helpful? Give feedback.
All reactions