dillon1000/react

Commit

Complete DOMPluginEventSystem migration to createRoot (#28148)

Follow-up to
https://github.com/facebook/react/pull/28139#discussion_r1468852457

I mistakenly kept the tests using comment nodes as containers as legacy
tests. It's not that comments nodes aren't allowed in createRoot
entirely. Only behind `disableCommentsAsDOMContainers`. We already had
one test following that pattern so I just applied the same pattern to
the other tests for consistency.

Now `DOMPluginEventSystem` no longer uses any legacy roots.
Browse files
Changed paths1 file
First-parent comparison
M packages/react-dom/src/events/__tests__/DOMPluginEventSystem-test.internal.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…