Skip to content

Commit 01d07f8

Browse files
authored
Merge pull request #1176 from lyp000119/share
fix: Fix the problem that innerRef causes server packaging to fail
2 parents 28deef4 + 865225a commit 01d07f8

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

frontend/src/app/pages/DashBoardPage/pages/Board/AutoDashboard/AutoBoardCore.tsx

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -107,22 +107,23 @@ export const AutoBoardCore: React.FC<{ boardId: string }> = memo(
107107
<StyledContainer bg={background}>
108108
{sortedLayoutWidgets.length ? (
109109
<div className="grid-wrap" ref={gridWrapRef}>
110-
<ReactGridLayout
111-
layout={layoutMap[colsKey]}
112-
margin={curMargin}
113-
containerPadding={curPadding}
114-
cols={LAYOUT_COLS_MAP[colsKey]}
115-
rowHeight={widgetRowHeight}
116-
onLayoutChange={onLayoutChange}
117-
isDraggable={false}
118-
isResizable={false}
119-
allowOverlap={allowOverlap}
120-
measureBeforeMount={false}
121-
useCSSTransforms={true}
122-
innerRef={ref}
123-
>
124-
{boardChildren}
125-
</ReactGridLayout>
110+
<div ref={ref}>
111+
<ReactGridLayout
112+
layout={layoutMap[colsKey]}
113+
margin={curMargin}
114+
containerPadding={curPadding}
115+
cols={LAYOUT_COLS_MAP[colsKey]}
116+
rowHeight={widgetRowHeight}
117+
onLayoutChange={onLayoutChange}
118+
isDraggable={false}
119+
isResizable={false}
120+
allowOverlap={allowOverlap}
121+
measureBeforeMount={false}
122+
useCSSTransforms={true}
123+
>
124+
{boardChildren}
125+
</ReactGridLayout>
126+
</div>
126127
</div>
127128
) : (
128129
<div className="empty">

0 commit comments

Comments
 (0)