Skip to content

Commit bb799e7

Browse files
committed
chore: format
1 parent 4357e37 commit bb799e7

File tree

1 file changed

+9
-9
lines changed
  • packages/react-router-dom

1 file changed

+9
-9
lines changed

packages/react-router-dom/dom.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -183,11 +183,11 @@ export function getFormSubmissionInfo(
183183
let payload: unknown = undefined;
184184

185185
if (isFormElement(target)) {
186-
// When grabbing the action from the element, it will have had the basename
187-
// prefixed to ensure non-JS scenarios work, so strip it since we'll
188-
// re-prefix in the router
189-
let attr = target.getAttribute("action");
190-
action = attr ? stripBasename(attr, basename) : null;
186+
// When grabbing the action from the element, it will have had the basename
187+
// prefixed to ensure non-JS scenarios work, so strip it since we'll
188+
// re-prefix in the router
189+
let attr = target.getAttribute("action");
190+
action = attr ? stripBasename(attr, basename) : null;
191191
method = target.getAttribute("method") || defaultMethod;
192192
encType = target.getAttribute("enctype") || defaultEncType;
193193

@@ -207,11 +207,11 @@ export function getFormSubmissionInfo(
207207

208208
// <button>/<input type="submit"> may override attributes of <form>
209209

210-
// When grabbing the action from the element, it will have had the basename
211-
// prefixed to ensure non-JS scenarios work, so strip it since we'll
212-
// re-prefix in the router
210+
// When grabbing the action from the element, it will have had the basename
211+
// prefixed to ensure non-JS scenarios work, so strip it since we'll
212+
// re-prefix in the router
213213
let attr = target.getAttribute("formaction") || form.getAttribute("action");
214-
action = attr ? stripBasename(attr, basename) : null;
214+
action = attr ? stripBasename(attr, basename) : null;
215215

216216
method =
217217
target.getAttribute("formmethod") ||

0 commit comments

Comments
 (0)