Created
October 11, 2022 20:08
-
-
Save kiliman/5a8dac031da8d545dc293fdcf82e9135 to your computer and use it in GitHub Desktop.
Patch to fix button formMethod support
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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