focusOptions object documentation #9167
Replies: 5 comments 1 reply
-
yes, we can. Are you using typescreipt? it should include in the type definition with autocomplete. |
Beta Was this translation helpful? Give feedback.
-
I just found myself trying to see what is FocusOptions but there is no documentation at all, last resource was to check the codebase. |
Beta Was this translation helpful? Give feedback.
-
@shestakov-vladyslav Here is the type export type FieldArrayMethodProps = {
shouldFocus?: boolean;
focusIndex?: number;
focusName?: string;
}; I am using typescript, but somehow the type autocomplete does not work. |
Beta Was this translation helpful? Give feedback.
-
I propose adding the const { fields, append } = useFieldArray({ name: "yourFieldArray", control }); // Add a new field without auto-focusing const addField = ( ) => { |
Beta Was this translation helpful? Give feedback.
-
This is still not added, what is the difference between focusIndex and focusName? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it poosible to add more details on focusOptions object in documentation, please?

Beta Was this translation helpful? Give feedback.
All reactions