From 1ceacac64895c707ee5dc3e0e557d8adc372bbbc Mon Sep 17 00:00:00 2001 From: Sebastian Markbage Date: Mon, 24 Apr 2023 00:13:03 -0400 Subject: [PATCH] Disable discrete selective hydration for submit event This blocks the action replaying mechanism because it calls stopPropagation. --- .../react-dom-bindings/src/events/ReactDOMEventReplaying.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-dom-bindings/src/events/ReactDOMEventReplaying.js b/packages/react-dom-bindings/src/events/ReactDOMEventReplaying.js index 9a23de60003b3..7960e6eced30d 100644 --- a/packages/react-dom-bindings/src/events/ReactDOMEventReplaying.js +++ b/packages/react-dom-bindings/src/events/ReactDOMEventReplaying.js @@ -111,7 +111,7 @@ const discreteReplayableEvents: Array = [ 'change', 'contextmenu', 'reset', - 'submit', + // 'submit', // stopPropagation blocks the replay mechanism ]; export function isDiscreteEventThatRequiresHydration(