dillon1000/react
Commit
Browse files 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.
Changed paths3 files
First-parent comparisonpackages/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 ModifiedPatch
Files changed
Rendering syntax-highlighted changes…