From 82d8875479f0a8e6f32aaf83fab5d5330a1d034d Mon Sep 17 00:00:00 2001 From: GoldenChrysus <17366720+GoldenChrysus@users.noreply.github.com> Date: Thu, 9 May 2024 09:13:02 +0900 Subject: [PATCH] fix(cell): cells editable when enableEditing on table is undefined Refs #328 --- .../src/components/body/MRT_TableBodyCell.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/mantine-react-table/src/components/body/MRT_TableBodyCell.tsx b/packages/mantine-react-table/src/components/body/MRT_TableBodyCell.tsx index 49dda389d..6ee5ef2b5 100644 --- a/packages/mantine-react-table/src/components/body/MRT_TableBodyCell.tsx +++ b/packages/mantine-react-table/src/components/body/MRT_TableBodyCell.tsx @@ -137,8 +137,8 @@ export const MRT_TableBodyCell = ({ const isEditable = !cell.getIsPlaceholder() && - (parseFromValuesOrFunc(enableEditing, row) && - parseFromValuesOrFunc(columnDef.enableEditing, row)) !== false; + parseFromValuesOrFunc(enableEditing, row) && + parseFromValuesOrFunc(columnDef.enableEditing, row) !== false; const isEditing = isEditable &&