Skip to content

Instantly share code, notes, and snippets.

@kiliman
Created October 11, 2022 20:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kiliman/5a8dac031da8d545dc293fdcf82e9135 to your computer and use it in GitHub Desktop.
Save kiliman/5a8dac031da8d545dc293fdcf82e9135 to your computer and use it in GitHub Desktop.
Patch to fix button formMethod support
diff --git a/node_modules/@remix-run/react/dist/components.js b/node_modules/@remix-run/react/dist/components.js
index 26189ce..9210ce0 100644
--- a/node_modules/@remix-run/react/dist/components.js
+++ b/node_modules/@remix-run/react/dist/components.js
@@ -737,7 +737,6 @@ let FormImpl = /*#__PURE__*/React__namespace.forwardRef(({
event.preventDefault();
let submitter = event.nativeEvent.submitter;
submit(submitter || event.currentTarget, {
- method,
replace
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment