primitives
primitives copied to clipboard
[ScrollArea] `asChild` on `Viewport` is not working correctly
Bug report
When using asChild
on Viewport
, the functionality is lost.
This is probably due to the fact that there's an extra node around children
.
I think the solution is to use Slottable
probably.
Reproducible example
https://codesandbox.io/s/scrollarea-viewport-aschild-bug-y46g5q?file=/App.js
Suggested solution
Additional context
Your environment
Software | Name(s) | Version |
---|---|---|
Radix Package(s) | ||
React | n/a | |
Browser | ||
Assistive tech | ||
Node | n/a | |
npm/yarn | ||
Operating System |