diff --git a/CHANGELOG.md b/CHANGELOG.md index 282fa8fca..917328d79 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 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 + ## 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(""); } 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": [