We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e568493 commit 446043aCopy full SHA for 446043a
src/useFormState.ts
@@ -202,9 +202,10 @@ export function useInnerContext(skip?: boolean) {
202
.flat();
203
204
const nextField = fields.find((f) => {
205
- const p = f.element.props;
+ const p = f?.element?.props;
206
+ // TODO: fix this with function components
207
// skip disabled fields in focus
- if ((p as any).disabled === true || p.editable === false) {
208
+ if ((p as any)?.disabled === true || p?.editable === false) {
209
return false;
210
}
211
// already sorted so the first one to hit above current index is the next field
0 commit comments