diff --git a/package-lock.json b/package-lock.json index 5c5ccf0e..61159e36 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@diamondlightsource/cs-web-lib", - "version": "0.11.2", + "version": "0.11.3", "lockfileVersion": 3, "requires": true, "packages": { diff --git a/package.json b/package.json index e6786636..bfb404f3 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@diamondlightsource/cs-web-lib", "type": "module", - "version": "0.11.2", + "version": "0.11.3", "description": "Control system web library", "main": "./dist/index.cjs", "scripts": { diff --git a/src/ui/widgets/DisplayReactGridLayout/displayGridLayout.tsx b/src/ui/widgets/DisplayReactGridLayout/displayGridLayout.tsx index 3ee020b0..459b794a 100644 --- a/src/ui/widgets/DisplayReactGridLayout/displayGridLayout.tsx +++ b/src/ui/widgets/DisplayReactGridLayout/displayGridLayout.tsx @@ -230,8 +230,8 @@ export const DisplayGridLayoutComponent = ( gridLayoutColumns: columns, gridCellMargins: cellMargins, gridCellHeight: cellHeight, - gridCellDragEnabled, - gridCellResizeEnabled + gridCellDragEnabled: props.gridCellDragEnabled ?? true, + gridCellResizeEnabled: props.gridCellResizeEnabled ?? true }) ); }, [ @@ -244,8 +244,8 @@ export const DisplayGridLayoutComponent = ( displayWidth, cellMargins, cellHeight, - gridCellDragEnabled, - gridCellResizeEnabled + props.gridCellDragEnabled, + props.gridCellResizeEnabled ]); const { diff --git a/src/ui/widgets/DisplayReactGridLayout/displayResponsive.tsx b/src/ui/widgets/DisplayReactGridLayout/displayResponsive.tsx index 838862e9..570c9b35 100644 --- a/src/ui/widgets/DisplayReactGridLayout/displayResponsive.tsx +++ b/src/ui/widgets/DisplayReactGridLayout/displayResponsive.tsx @@ -252,8 +252,8 @@ export const DisplayResponsiveComponent = (props: propsType): JSX.Element => { cellMargins, cellHeight, dispatch, - gridCellDragEnabled, - gridCellResizeEnabled + newProps.gridCellDragEnabled ?? true, + newProps.gridCellResizeEnabled ?? true ), [ dispatch, @@ -265,8 +265,8 @@ export const DisplayResponsiveComponent = (props: propsType): JSX.Element => { breakpoints, cellMargins, cellHeight, - gridCellDragEnabled, - gridCellResizeEnabled, + newProps.gridCellDragEnabled, + newProps.gridCellResizeEnabled, areBreakpointsConsistent ] );