From 027f5fab34bfd25047b930d8c1504b6e6ca0517a Mon Sep 17 00:00:00 2001 From: seanBE Date: Thu, 26 Dec 2019 11:25:54 +0100 Subject: [PATCH 1/2] drop required flag on CheckboxGroupInput choices prop --- packages/ra-ui-materialui/src/input/CheckboxGroupInput.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ra-ui-materialui/src/input/CheckboxGroupInput.tsx b/packages/ra-ui-materialui/src/input/CheckboxGroupInput.tsx index fab7faa9248..58562b1d331 100644 --- a/packages/ra-ui-materialui/src/input/CheckboxGroupInput.tsx +++ b/packages/ra-ui-materialui/src/input/CheckboxGroupInput.tsx @@ -201,7 +201,7 @@ const CheckboxGroupInput: FunctionComponent< }; CheckboxGroupInput.propTypes = { - choices: PropTypes.arrayOf(PropTypes.object).isRequired, + choices: PropTypes.arrayOf(PropTypes.object), className: PropTypes.string, label: PropTypes.string, source: PropTypes.string, From e21c18dc335626c2f4e8f45952a83e38404c6d08 Mon Sep 17 00:00:00 2001 From: seanBE Date: Thu, 26 Dec 2019 14:50:44 +0100 Subject: [PATCH 2/2] stop passing loaded boolean down to fieldset in CheckboxGroupInput --- packages/ra-ui-materialui/src/input/CheckboxGroupInput.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/ra-ui-materialui/src/input/CheckboxGroupInput.tsx b/packages/ra-ui-materialui/src/input/CheckboxGroupInput.tsx index 58562b1d331..c3dec2ec0d4 100644 --- a/packages/ra-ui-materialui/src/input/CheckboxGroupInput.tsx +++ b/packages/ra-ui-materialui/src/input/CheckboxGroupInput.tsx @@ -17,6 +17,7 @@ const sanitizeRestProps = ({ setFilter, setPagination, setSort, + loaded, ...rest }: any) => defaultSanitizeRestProps(rest);