From bfeef95c440e836bcf47c549b9e058a506c847b8 Mon Sep 17 00:00:00 2001 From: sebmarkbage Date: Tue, 25 Apr 2023 11:43:52 -0700 Subject: [PATCH] Insert temporary input node to polyfill submitter argument in FormData (#26714) Summary: 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. DiffTrain build for commit https://github.com/facebook/react/commit/5e5342b10059bf90738a8d9171fcf0af9d9d5d51. Changelog: [Internal] Reviewed By: kassens Differential Revision: D45240323 fbshipit-source-id: 3e9a8076942abdc24cf25b9dd9f130727ec3c0fd --- packages/react-native/Libraries/Renderer/REVISION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/Libraries/Renderer/REVISION b/packages/react-native/Libraries/Renderer/REVISION index eb6ba036ca8..6747252fa2d 100644 --- a/packages/react-native/Libraries/Renderer/REVISION +++ b/packages/react-native/Libraries/Renderer/REVISION @@ -1 +1 @@ -9c58a0b6475509f9124da578207aa0d3b7364035 +5e5342b10059bf90738a8d9171fcf0af9d9d5d51