Allow accessing ref of ScrollContainer's child (#36265)

This commit is contained in:
diondiondion 2025-09-25 18:14:49 +02:00 committed by GitHub
parent d801cf8e59
commit 11bd515648
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 17 additions and 3 deletions

View file

@ -399,7 +399,7 @@ class ScrollableList extends PureComponent {
if (trackScroll) {
return (
<ScrollContainer scrollKey={scrollKey}>
<ScrollContainer scrollKey={scrollKey} childRef={this.setRef}>
{scrollableArea}
</ScrollContainer>
);