From f24b746d12e689157796be2006ae8d28cff2980a Mon Sep 17 00:00:00 2001 From: Brian Vaughn Date: Tue, 13 Feb 2024 10:06:04 -0500 Subject: [PATCH] Remove is-dev check from data-panel-collasible and data-panel-size attributes --- packages/react-resizable-panels/src/Panel.ts | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/packages/react-resizable-panels/src/Panel.ts b/packages/react-resizable-panels/src/Panel.ts index 2a543f656..b79a4e737 100644 --- a/packages/react-resizable-panels/src/Panel.ts +++ b/packages/react-resizable-panels/src/Panel.ts @@ -243,16 +243,10 @@ export function PanelWithForwardedRef({ // CSS selectors "data-panel": "", - "data-panel-id": panelId, + "data-panel-collapsible": collapsible || undefined, "data-panel-group-id": groupId, - - // e2e test attributes - "data-panel-collapsible": isDevelopment - ? collapsible || undefined - : undefined, - "data-panel-size": isDevelopment - ? parseFloat("" + style.flexGrow).toFixed(1) - : undefined, + "data-panel-id": panelId, + "data-panel-size": parseFloat("" + style.flexGrow).toFixed(1), }); }