We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7494d2 commit 03618b8Copy full SHA for 03618b8
src/useSubmit.ts
@@ -51,7 +51,7 @@ export function useSubmit<T>({
51
})
52
);
53
54
- if (firstErrorY) {
+ if (firstErrorY && firstErrorY !== Infinity) {
55
const extraPaddingTop = 24;
56
scrollViewRef.current.scrollTo({
57
y: firstErrorY - extraPaddingTop,
0 commit comments