Skip to content

Commit

Permalink
Disable discrete selective hydration for submit event
Browse files Browse the repository at this point in the history
This blocks the action replaying mechanism because it calls stopPropagation.
  • Loading branch information
sebmarkbage committed Apr 24, 2023
1 parent f07be4f commit 1ceacac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const discreteReplayableEvents: Array<DOMEventName> = [
'change',
'contextmenu',
'reset',
'submit',
// 'submit', // stopPropagation blocks the replay mechanism
];

export function isDiscreteEventThatRequiresHydration(
Expand Down

0 comments on commit 1ceacac

Please sign in to comment.