diff --git a/packages/panels/src/components/collapsible/CollapsibleWithCheckbox.tsx b/packages/panels/src/components/collapsible/CollapsibleWithCheckbox.tsx index 8d87d2a8d..b9ee52978 100644 --- a/packages/panels/src/components/collapsible/CollapsibleWithCheckbox.tsx +++ b/packages/panels/src/components/collapsible/CollapsibleWithCheckbox.tsx @@ -7,7 +7,9 @@ export interface CollapsibleWithCheckboxProps Pick< CheckboxProps, "value" | "onValueChange" | "onChange" | "indeterminate" - > {} + > { + checkboxDisabled: boolean; +} export const CollapsibleWithCheckbox: React.FC< CollapsibleWithCheckboxProps @@ -16,6 +18,7 @@ export const CollapsibleWithCheckbox: React.FC< onValueChange, onChange, indeterminate, + checkboxDisabled, ...collapsibleProps }) => { return ( @@ -26,6 +29,7 @@ export const CollapsibleWithCheckbox: React.FC< indeterminate={indeterminate} onValueChange={onValueChange} onChange={onChange} + disabled={checkboxDisabled} onClick={(ev) => ev.stopPropagation()} /> }