Skip to content

Commit

Permalink
fix: validation message for scroll/replace
Browse files Browse the repository at this point in the history
  • Loading branch information
lubieowoce committed Jul 29, 2024
1 parent 0184b34 commit aec0088
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/src/client/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export default function Form({

if (!isNavigatingForm) {
if (process.env.NODE_ENV === 'development') {
if (replace || scroll) {
if (replace !== undefined || scroll !== undefined) {
console.error(
'Passing `replace` or `scroll` to a <Form> whose `action` is a function has no effect.\n' +
'See the relevant docs to learn how to control this behavior for navigations triggered from actions:\n' +
Expand Down

0 comments on commit aec0088

Please sign in to comment.