Skip to content

Commit 3598f11

Browse files
🐛 - fix: fixed a bug that cuased the datagrid to scroll unintentionally
1 parent 2713a26 commit 3598f11

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/components/data/datagrid/datagrid.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,8 +442,6 @@ export const DataGrid = <T extends object = object, F extends object = T>(
442442
// Height should be computed.
443443
if (height === "fill-available-space") {
444444
const rect = node.getBoundingClientRect();
445-
node.style.height = `auto`;
446-
447445
const windowHeight = document.documentElement.clientHeight;
448446
const dataGridOffsetTop = rect.top;
449447
const availableHeight = Math.min(windowHeight - dataGridOffsetTop);

0 commit comments

Comments
 (0)