Skip to content

Latest commit

 

History

History
96 lines (59 loc) · 4.89 KB

CHANGELOG.md

File metadata and controls

96 lines (59 loc) · 4.89 KB

@radix-ui/react-scroll-area

1.4.0

1.3.0

  • Added a ScrollArea.Content part so consumers can own the wrapper element implicitly rendered by ScrollArea.Viewport. Pass disableImplicitContentElement to the viewport and render ScrollArea.Content as its child.

    <ScrollArea.Root>
      <ScrollArea.Viewport disableImplicitContentElement>
        <ScrollArea.Content>{children}</ScrollArea.Content>
      </ScrollArea.Viewport>
      <ScrollArea.Scrollbar>
        <ScrollArea.Thumb />
      </ScrollArea.Scrollbar>
    </ScrollArea.Root>

    In the next major release, the viewport will no longer render this element implicitly. We recommend migrating to this API now for a smoother upgrade.

  • Fixed a bug where asChild on ScrollArea.Viewport merged props onto the implicit content element instead of the consumer's element.

  • Updated dependencies: @radix-ui/[email protected], @radix-ui/[email protected], @radix-ui/[email protected], @radix-ui/[email protected]

1.2.18

1.2.17

1.2.16

1.2.15

1.2.14

  • Fixed --radix-scroll-area-corner-width and --radix-scroll-area-corner-height not resetting to 0 when the corner is removed (eg. when one of the scrollbars is no longer visible). Previously these values would stick around and leave a permanent gap on the remaining scrollbar.
  • Updated dependencies: @radix-ui/[email protected], @radix-ui/[email protected], @radix-ui/[email protected]

1.2.13

  • Fixed infinite re-render loop in React 19 caused by unstable composed ref callback references.

Other updates

1.2.12

  • Stabilized the viewport style tag unless the nonce changes.
  • Fixed Duplicate index signature errors that surfaced when consuming multiple packages together.
  • Updated dependencies: @radix-ui/[email protected]

1.2.11

1.2.10

1.2.9

  • Replace deprecated 'ElementRef' with 'ComponentRef' (#3426)
  • Updated dependencies: @radix-ui/[email protected]

1.2.8

1.2.7

1.2.6

1.2.5