Skip to content

Commit

Permalink
s/getRootNode/ownerDocument
Browse files Browse the repository at this point in the history
  • Loading branch information
rickhanlonii committed Feb 21, 2024
1 parent 59fe6c3 commit 435857b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ export function retryIfBlockedOn(

if (enableFormActions) {
// Check the document if there are any queued form actions.
const root = unblocked.getRootNode();
const root = unblocked.ownerDocument;
const formReplayingQueue: void | FormReplayingQueue = (root: any)
.$$reactFormReplay;
if (formReplayingQueue != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ export function listenToFormSubmissionsForReplaying() {
// where we preserve sequencing and where we'll pick it up from during hydration.
// In practice, this is just the same as document but we might support shadow trees
// in the future.
const root = form.getRootNode();
const root = form.ownerDocument;
(root['$$reactFormReplay'] = root['$$reactFormReplay'] || []).push(
form,
submitter,
Expand Down

0 comments on commit 435857b

Please sign in to comment.