dillon1000/react

Commit

Insert temporary input node to polyfill submitter argument in FormData (#26714)

Insert temporary input node to polyfill submitter argument in FormData.
This works for buttons too and fixes a bug where the type attribute
wasn't reset.

I also exclude the submitter if it's a function action. This ensures
that we don't include the generated "name" when the action is a server
action. Conceptually that name doesn't exist.
Browse files
Changed paths3 files
First-parent comparison
M packages/react-dom-bindings/src/client/ReactDOMComponent.js ModifiedM packages/react-dom-bindings/src/events/plugins/FormActionEventPlugin.js ModifiedM packages/react-dom/src/__tests__/ReactDOMForm-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…