Skip to content

Commit 64b2210

Browse files
committed
s/getRootNode/ownerDocument
1 parent 59fe6c3 commit 64b2210

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ export function retryIfBlockedOn(
537537

538538
if (enableFormActions) {
539539
// Check the document if there are any queued form actions.
540-
const root = unblocked.getRootNode();
540+
const root = unblocked.ownerDocument;
541541
const formReplayingQueue: void | FormReplayingQueue = (root: any)
542542
.$$reactFormReplay;
543543
if (formReplayingQueue != null) {

packages/react-dom-bindings/src/server/fizz-instruction-set/ReactDOMFizzInstructionSetInlineCodeStrings.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/react-dom-bindings/src/server/fizz-instruction-set/ReactDOMFizzInstructionSetShared.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ export function listenToFormSubmissionsForReplaying() {
198198
// where we preserve sequencing and where we'll pick it up from during hydration.
199199
// In practice, this is just the same as document but we might support shadow trees
200200
// in the future.
201-
const root = form.getRootNode();
201+
const root = form.ownerDocument;
202202
(root['$$reactFormReplay'] = root['$$reactFormReplay'] || []).push(
203203
form,
204204
submitter,

0 commit comments

Comments
 (0)