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
There is an issue that debounceValidate is set on the field record within Form.registerField method. Because of that, the internal Field's this.contextProps reference contains no such property on the field record at all. Apparently, relying on componentWillUpdate is not safe, since right now I am able to reproduce the situation when onChange validation throws due to missing fieldRecord.debounceValidate function.
How
I see two solutions to this:
Set debounceValidate on Field.register and just read it in Form.registerField
Or, have a fallback validator function in case fieldRecord.debounceValidate is undefined.
Perhaps, combining the two is also quite possible.