How to reset a textbox when another dropdown field is changed in redux-form?
I tried using dispatch(change()) syntax but I keep getting the following error:
redux-form/lib/change could not be resolved
How to reset a textbox when another dropdown field is changed in redux-form?
I tried using dispatch(change()) syntax but I keep getting the following error:
redux-form/lib/change could not be resolved
Copyright © 2021 Jogjafile Inc.
Finally found solution for above problem. The
error got resolved when I removed the
import {change} from 'redux-form'statement. Instead now, I am passing thechangefrom the form's props. To dynamically reset the value ofFieldfollowing statement worked like charm:Note: Below code did not work for me: