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), }); }