@linzjs/step-ag-grid 22.2.2 → 22.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/step-ag-grid.esm.js
CHANGED
|
@@ -4476,7 +4476,11 @@ const BooleanCellRenderer = (props) => {
|
|
|
4476
4476
|
api.removeEventListener("cellFocused", checkFocus);
|
|
4477
4477
|
};
|
|
4478
4478
|
}, [api, column, node.rowIndex]);
|
|
4479
|
-
|
|
4479
|
+
const isDisabled = !fnOrVar(colDef?.editable, props);
|
|
4480
|
+
return (jsx("div", { className: clsx("ag-wrapper ag-input-wrapper ag-checkbox-input-wrapper", {
|
|
4481
|
+
"ag-checked": props.value,
|
|
4482
|
+
"ag-disabled": isDisabled,
|
|
4483
|
+
}), children: jsx("input", { type: "checkbox", className: "ag-input-field-input ag-checkbox-input", disabled: isDisabled, ref: inputRef, checked: value, onChange: () => { }, onClick: (e) => {
|
|
4480
4484
|
e.stopPropagation();
|
|
4481
4485
|
// cell has to be in edit mode
|
|
4482
4486
|
// if in non-edit mode clickInputWhenContainingCellClicked will click to put it in edit mode
|