From a6cc1aaa03879b4615d5adbac4513f3a85303be4 Mon Sep 17 00:00:00 2001 From: Evgeny Kuznetsov Date: Thu, 29 Aug 2019 10:41:48 +0300 Subject: [PATCH] Add hasBulkActions to useMemo inputs If hasBulkActions prop changed dynamically, DataGrid renders Checkbox only in the DataGridHeader and doesn't render Checkbox in every row because useMemo ignores this prop change. --- packages/ra-ui-materialui/src/list/DatagridBody.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ra-ui-materialui/src/list/DatagridBody.js b/packages/ra-ui-materialui/src/list/DatagridBody.js index d9bc13b6f7a..125515f0058 100644 --- a/packages/ra-ui-materialui/src/list/DatagridBody.js +++ b/packages/ra-ui-materialui/src/list/DatagridBody.js @@ -61,7 +61,7 @@ const DatagridBody = ({ )} ), - [version, data, selectedIds, JSON.stringify(ids)] // eslint-disable-line + [version, data, selectedIds, JSON.stringify(ids), hasBulkActions] // eslint-disable-line ); DatagridBody.propTypes = {