At the moment there is no way (after a deep search in Formik properties) to detect if another field has been changed by browser autocomplete, when a field is changed. That means that, for example, we can show errors on validation for the autocompleted input that has "not been touched" directly.
We were using the "touched" property to detect the change, but that is triggered on blur of the touched field, not on change of other fields being changed.
Now I am using "dirty", but that is form related, not field related, so it gives me a partial solution.
Desired Behaviour
I would like to be able to know when, on autocomplete, another field has been changed, apart from the one that has been touched.
Suggested Solution
The suggested solution could be having a dirty (or pristine) that is localised to inputs like touched, so that we can understand when a field has been changed on autocomplete. Or it could be called changedValues.
Who does this impact? Who is this for?
It is to fix a bug we have at the moment, that on autocomplete the error is not showed on another field that has not been directly touched.
Feature request
Current Behaviour
At the moment there is no way (after a deep search in Formik properties) to detect if another field has been changed by browser autocomplete, when a field is changed. That means that, for example, we can show errors on validation for the autocompleted input that has "not been touched" directly. We were using the "touched" property to detect the change, but that is triggered on blur of the touched field, not on change of other fields being changed. Now I am using "dirty", but that is form related, not field related, so it gives me a partial solution.
Desired Behaviour
I would like to be able to know when, on autocomplete, another field has been changed, apart from the one that has been touched.
Suggested Solution
The suggested solution could be having a
dirty
(or pristine) that is localised to inputs liketouched
, so that we can understand when a field has been changed on autocomplete. Or it could be calledchangedValues
.Who does this impact? Who is this for?
It is to fix a bug we have at the moment, that on autocomplete the error is not showed on another field that has not been directly touched.
Describe alternatives you've considered
Additional context