From 566de30018433deb4afef95ffeca7959c21a6d39 Mon Sep 17 00:00:00 2001 From: Brian Vaughn Date: Sun, 1 Feb 2026 18:00:12 -0500 Subject: [PATCH 1/2] Revert collapse behavioral change again (#651) Resolves #650 --- CHANGELOG.md | 6 +++++- lib/global/utils/adjustLayoutByDelta.test.ts | 15 ++++++++++----- lib/global/utils/adjustLayoutByDelta.ts | 3 +++ 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 282fa8fca..f664be033 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## Unreleased + +- [651](https://github.com/bvaughn/react-resizable-panels/pull/651): Disabled the change to collapsible panel behavior that was originally made in [635](https://github.com/bvaughn/react-resizable-panels/pull/635) due to another reported regression + ## 4.5.7 - [646](https://github.com/bvaughn/react-resizable-panels/pull/646): Re-enable the collapsible `Panel` from 4.5.3 that was disabled in 4.5.6 @@ -7,7 +11,7 @@ ## 4.5.6 -- [644](https://github.com/bvaughn/react-resizable-panels/pull/644): Disabled the change to collapsible panel behavior that was originally made in [635](https://github.com/bvaughn/react-resizable-panels/pull/635). +- [644](https://github.com/bvaughn/react-resizable-panels/pull/644): Disabled the change to collapsible panel behavior that was originally made in [635](https://github.com/bvaughn/react-resizable-panels/pull/635) ## 4.5.5 diff --git a/lib/global/utils/adjustLayoutByDelta.test.ts b/lib/global/utils/adjustLayoutByDelta.test.ts index 5f1563598..59976e5fe 100644 --- a/lib/global/utils/adjustLayoutByDelta.test.ts +++ b/lib/global/utils/adjustLayoutByDelta.test.ts @@ -2013,7 +2013,8 @@ describe("adjustLayoutByDelta", () => { ).toEqual(closed); }); - test("open if delta is greater than minimum threshold", () => { + // TODO Re-enable this once issues/650 is resolved + test.skip("open if delta is greater than minimum threshold", () => { expect( adjustLayoutByDelta({ delta: panelId === "left" ? 6 : -6, @@ -2025,7 +2026,8 @@ describe("adjustLayoutByDelta", () => { ).toEqual(open); }); - test("close if delta is less than minimum threshold", () => { + // TODO Re-enable this once issues/650 is resolved + test.skip("close if delta is less than minimum threshold", () => { expect( adjustLayoutByDelta({ delta: panelId === "left" ? 4 : -4, @@ -2124,7 +2126,8 @@ describe("adjustLayoutByDelta", () => { ).toEqual(closed); }); - test("open if delta is greater than minimum threshold", () => { + // TODO Re-enable this once issues/650 is resolved + test.skip("open if delta is greater than minimum threshold", () => { expect( adjustLayoutByDelta({ delta: panelId === "left" ? 6 : -6, @@ -2136,7 +2139,8 @@ describe("adjustLayoutByDelta", () => { ).toEqual(open); }); - test("close if delta is less than minimum threshold", () => { + // TODO Re-enable this once issues/650 is resolved + test.skip("close if delta is less than minimum threshold", () => { expect( adjustLayoutByDelta({ delta: panelId === "left" ? 4 : -4, @@ -2235,7 +2239,8 @@ describe("adjustLayoutByDelta", () => { }); }); - test("edge case discussions/643", () => { + // TODO Re-enable this once issues/650 is resolved + test.skip("edge case discussions/643", () => { ( [ [4, l([10, 90])], diff --git a/lib/global/utils/adjustLayoutByDelta.ts b/lib/global/utils/adjustLayoutByDelta.ts index 8f9a8010b..553320f8d 100644 --- a/lib/global/utils/adjustLayoutByDelta.ts +++ b/lib/global/utils/adjustLayoutByDelta.ts @@ -131,6 +131,8 @@ export function adjustLayoutByDelta({ } break; } + // TODO Re-enable this once issues/650 is resolved + /* default: { // If we're starting from a collapsed state, dragging past the halfway point should cause the panel to expand // This can happen for positive or negative drags, and panels on either side of the separator can be collapsible @@ -182,6 +184,7 @@ export function adjustLayoutByDelta({ } break; } + */ } // DEBUG.push(""); } From 119437b6a973c10b6513613eb9453fc9fb850259 Mon Sep 17 00:00:00 2001 From: Brian Vaughn Date: Sun, 1 Feb 2026 18:00:38 -0500 Subject: [PATCH 2/2] 4.5.7 -> 4.5.8 --- CHANGELOG.md | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f664be033..917328d79 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## Unreleased +## 4.5.8 - [651](https://github.com/bvaughn/react-resizable-panels/pull/651): Disabled the change to collapsible panel behavior that was originally made in [635](https://github.com/bvaughn/react-resizable-panels/pull/635) due to another reported regression diff --git a/package.json b/package.json index 2922812be..feaaee3d4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-resizable-panels", - "version": "4.5.7", + "version": "4.5.8", "type": "module", "author": "Brian Vaughn (https://github.com/bvaughn/)", "contributors": [