Skip to content

Commit 03618b8

Browse files
fix: android bug with no inputs
1 parent b7494d2 commit 03618b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/useSubmit.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export function useSubmit<T>({
5151
})
5252
);
5353

54-
if (firstErrorY) {
54+
if (firstErrorY && firstErrorY !== Infinity) {
5555
const extraPaddingTop = 24;
5656
scrollViewRef.current.scrollTo({
5757
y: firstErrorY - extraPaddingTop,

0 commit comments

Comments
 (0)