MCPcopy Create free account
hub / github.com/react-hook-form/react-hook-form / _focusError

Function _focusError

src/logic/createFormControl.ts:1367–1369  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1365 };
1366
1367 const _focusError = () =>
1368 _options.shouldFocusError &&
1369 iterateFieldsByAction(_fields, _focusInput, _names.mount);
1370
1371 const _disableForm = (disabled?: boolean) => {
1372 if (isBoolean(disabled)) {

Callers 1

handleSubmitFunction · 0.85

Calls 1

iterateFieldsByActionFunction · 0.85

Tested by

no test coverage detected