Skip to content

Commit eac9fed

Browse files
committed
fix: bind ref to ScrollArea.Root for proper scrolling functionality
1 parent dbe6922 commit eac9fed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/components/ScrollAreaPrimitive.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
}
4848
</script>
4949

50-
<ScrollArea.Root class={cn(className)} {...restProps}>
50+
<ScrollArea.Root bind:ref class={cn(className)} {...restProps}>
5151
<ScrollArea.Viewport bind:ref={viewRef} class={cn(viewClass)} onwheel={orientation === "horizontal" ? handleWheel : undefined}>
5252
{@render viewportChildren?.()}
5353
</ScrollArea.Viewport>

0 commit comments

Comments
 (0)