We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3cf99ad commit 0fcbcccCopy full SHA for 0fcbccc
src/hook/index.tsx
@@ -101,15 +101,7 @@ export const useRemixForm = <T extends FieldValues>({
101
setIsSubmittedSuccessfully(true);
102
const encType = submitConfig?.encType ?? formEncType;
103
const method = submitConfig?.method ?? formMethod ?? "post";
104
-
105
- let action = submitConfig?.action;
106
- if (!action && formAction) {
107
- const formActionUrl = new URL(formAction, window.location.origin);
108
- action = formActionUrl.origin === window.location.origin
109
- ? `${formActionUrl.pathname}${formActionUrl.search}`
110
- : formActionUrl.href;
111
- }
112
+ const action = submitConfig?.action ?? formAction;
113
const submitPayload = { ...data, ...submitData };
114
const formData =
115
encType === "application/json"
0 commit comments