You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: generic getShadowRoots + addEvent for non-composed events
Address PR review feedback. Replace the scroll-specific
addGlobalScrollListener with a generic getShadowRoots(node) helper plus
the addEvent utility, since the shadow-DOM event-propagation problem
applies to all non-composed events, not just scroll.
addEvent and the EventMapType/EventTargetType type helpers are pulled in
from #10102 verbatim and placed at the same locations so the overlap
auto-resolves when #10102 lands.
Callers (ScrollView, both useCloseOnScroll copies) now use:
addEvent(window/document, 'scroll', listener, true)
addEvent(getShadowRoots(ref.current), 'scroll', listener, true)
Select.browser.test now opens the ComboBox via the @react-aria/test-utils
combobox tester instead of dispatching raw PointerEvents.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments