@@ -183,11 +183,11 @@ export function getFormSubmissionInfo(
183
183
let payload : unknown = undefined ;
184
184
185
185
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 ;
191
191
method = target . getAttribute ( "method" ) || defaultMethod ;
192
192
encType = target . getAttribute ( "enctype" ) || defaultEncType ;
193
193
@@ -207,11 +207,11 @@ export function getFormSubmissionInfo(
207
207
208
208
// <button>/<input type="submit"> may override attributes of <form>
209
209
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
213
213
let attr = target . getAttribute ( "formaction" ) || form . getAttribute ( "action" ) ;
214
- action = attr ? stripBasename ( attr , basename ) : null ;
214
+ action = attr ? stripBasename ( attr , basename ) : null ;
215
215
216
216
method =
217
217
target . getAttribute ( "formmethod" ) ||
0 commit comments