Skip to content

Commit 1ceacac

Browse files
committed
Disable discrete selective hydration for submit event
This blocks the action replaying mechanism because it calls stopPropagation.
1 parent f07be4f commit 1ceacac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-dom-bindings/src/events/ReactDOMEventReplaying.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ const discreteReplayableEvents: Array<DOMEventName> = [
111111
'change',
112112
'contextmenu',
113113
'reset',
114-
'submit',
114+
// 'submit', // stopPropagation blocks the replay mechanism
115115
];
116116

117117
export function isDiscreteEventThatRequiresHydration(

0 commit comments

Comments
 (0)