We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
7.51.2
absent
react-hook-form/src/logic/createFormControl.ts function _updateIsValidating work incorrect for name with . like settings.default_port or complex.name
const _updateIsValidating = (names?: string[], isValidating?: boolean) => { if (_proxyFormState.isValidating || _proxyFormState.validatingFields) { (names || Array.from(_names.mount)).forEach((name) => { if (name) { isValidating ? set(_formState.validatingFields, name, isValidating) : unset(_formState.validatingFields, name); } }); _subjects.state.next({ validatingFields: _formState.validatingFields, isValidating: !isEmptyObject(_formState.validatingFields), }); } };
set/unset produce object like that - that means isValidating false
{ "simplename": false "complex": { "name" : false } }
src/utils/isEmptyObject.ts but isEmptyObject return false for that object (!isEmptyObject return true and this is cause issue)
export default (value: unknown): value is EmptyObject => isObject(value) && !Object.keys(value).length;
names with . like settings.default_port process without isValidating stuck
Chrome, Safari
No response
The text was updated successfully, but these errors were encountered:
sorry, check one more time on newer version. fixed
Sorry, something went wrong.
No branches or pull requests
Version Number
7.51.2
Codesandbox/Expo snack
absent
Steps to reproduce
react-hook-form/src/logic/createFormControl.ts
function _updateIsValidating work incorrect for name with . like settings.default_port or complex.name
set/unset produce object like that - that means isValidating false
src/utils/isEmptyObject.ts
but isEmptyObject return false for that object (!isEmptyObject return true and this is cause issue)
Expected behaviour
names with . like settings.default_port process without isValidating stuck
What browsers are you seeing the problem on?
Chrome, Safari
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: