Skip to content

Commit ce180af

Browse files
Fix ReferenceError: methods is not defined
- Remove undefined 'methods' parameter from useScrollToErrorOnSubmit hook - Hook will use useRemixFormContext() automatically when inside RemixFormProvider - This fixes the ReferenceError that was preventing the story from rendering
1 parent 6ef7938 commit ce180af

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

apps/docs/src/remix-hook-form/scroll-to-error.stories.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ type FormData = z.infer<typeof formSchema>;
5858
const ScrollToErrorHookForm = () => {
5959
// Use the scroll-to-error hook with custom options
6060
useScrollToErrorOnSubmit({
61-
methods, // Pass the methods explicitly
6261
offset: 100, // Account for fixed header
6362
behavior: 'smooth',
6463
shouldFocus: true,

0 commit comments

Comments
 (0)