Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Jan 7, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

The primary change in this version is to the `Group` component, which
now sets default `width`, `height`, and `overflow` styles. (Both can be
overridden using the `style` property.) This is being done to improve
DevX and reduce confusion with groups either being invisible or too
tall.

This mirrors the behavior of default group styles in versions 2 and 3.:

https://github.com/bvaughn/react-resizable-panels/blob/43a071df6bb96d54e8b81a6be0e2d453af45cc4b/packages/react-resizable-panels/src/PanelGroup.ts#L933-L939

> [!NOTE]
> Is this a breaking change or a bug fix? I see arguments for both
sides. I lean towards thinking of it as a bug fix though, after having
migrated a lot of apps from version 3 to 4 today. I think this behavior
is a more intuitive _default_ that can still be overridden in several
ways.

This version also includes the following minor changes:
- Drag interactions only call `event.preventDefault` for the primary
button
- Refine TS types for `useGroupRef` and `usePanelRef` to include `|
null` to increase compatibility with older React versions
- Update TSDoc comments for `Panel` and `Separator` components
@pull pull bot locked and limited conversation to collaborators Jan 7, 2026
@pull pull bot added the ⤵️ pull label Jan 7, 2026
@pull pull bot merged commit 81c278a into code:main Jan 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant