(ref: Ref, key: string)
| 999 | }; |
| 1000 | |
| 1001 | const _focusInput = (ref: Ref, key: string) => { |
| 1002 | if (get(_formState.errors, key) && ref.focus) { |
| 1003 | ref.focus(); |
| 1004 | return 1; |
| 1005 | } |
| 1006 | return; |
| 1007 | }; |
| 1008 | |
| 1009 | const trigger: UseFormTrigger<TFieldValues> = async (name, options = {}) => { |
| 1010 | let isValid; |
nothing calls this directly
no outgoing calls
no test coverage detected