$ the-wire · showcase
React stops emulating bubbling for toggle events, fixes Fragment compareDocumentPosition
By RepoJournal · Filed · About Meta · Composed from the cited sources · methodology
React's DOM layer corrects two long-standing behavioral bugs, while React Native's only substantive change lands flagged off by default.
[DOM] Stop emulating bubbling for toggle and beforetoggle events (#37580) facebook/react
toggle and beforetoggle, fired by <details>, <dialog>, and the Popover API, already sat in nonDelegatedEvents with a native listener on the target, but SimpleEventPlugin's accumulateTargetOnly check only special-cased scroll and scrollend, so React still accumulated ancestor listeners and synthesized bubbling for events that don't bubble natively. Handlers on ancestors will no longer fire for t...
[DOM] Fix Fragment compareDocumentPosition for the root container facebook/react
FragmentInstance.compareDocumentPosition() was returning DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC for the container passed to createRoot() and for any element between that container and document.body, where CONTAINS | PRECEDING was expected. Code doing containment or ordering checks against the root container will now get DOM-standard results.
Auto offscreen-composite elevated descendants under reduced opacity on Android (flagged) (#58493) facebook/react-native
by Calvin Liu
On Android, a view drawn with reduced opacity containing an elevated descendant composites per drawing primitive, so the elevation shadow renders as concentric bands with an over-opaque center instead of fading uniformly. The fix offscreen-composites those descendants and ships behind a flag that is off by default.
Cover `runtimeexecutor` with Stable API guards (#58324) facebook/react-native
runtimeexecutor:runtimeexecutor is now classified as a public target under the C++ stable API three-tier visibility model, with UmbrellaGuard.h added to its three exported headers and the new React/RuntimeExecutor.h umbrella wired into BUCK, CMake, and CocoaPods. Anyone building against the runtime executor headers is now bound by the stable API surface.
Add ScrollView example in KeyboardAvoidingViewExample (#58432) facebook/react-native
The remaining React Native commits are RNTester housekeeping: a ScrollView example in KeyboardAvoidingViewExample that reproduces the multi-line text field failure on iOS, plus close button alignment and description fixes in the same example.