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
I would like to have option to trigger field onChange listener when changing field value by form.setFieldValue('name', value) for now it has option dontUpdateMeta. The workaround I could find is to do
const field = form.getFieldInfo(`name`).instance;
field?.setValue('value');
which is running filed validation and triggers listener onChange event.
Is this this possible or using the above approach is fine?
Thanks.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I would like to have option to trigger field onChange listener when changing field value by
form.setFieldValue('name', value)
for now it has optiondontUpdateMeta
. The workaround I could find is to dowhich is running filed validation and triggers listener onChange event.
Is this this possible or using the above approach is fine?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions