MCPcopy Index your code
hub / github.com/react-hook-form/react-hook-form / _focusError

Function _focusError

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

Source from the content-addressed store, hash-verified

1543 };
1544
1545 const _focusError = () =>
1546 _options.shouldFocusError &&
1547 !_options.shouldUseNativeValidation &&
1548 iterateFieldsByAction(_fields, _focusInput, _names.mount);
1549
1550 const _disableForm = (disabled?: boolean) => {
1551 if (isBoolean(disabled)) {

Callers 1

handleSubmitFunction · 0.85

Calls 1

iterateFieldsByActionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…