@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/README.md
CHANGED
package/dist/step-ag-grid.cjs.js
CHANGED
|
@@ -4478,7 +4478,11 @@ const BooleanCellRenderer = (props) => {
|
|
|
4478
4478
|
api.removeEventListener("cellFocused", checkFocus);
|
|
4479
4479
|
};
|
|
4480
4480
|
}, [api, column, node.rowIndex]);
|
|
4481
|
-
|
|
4481
|
+
const isDisabled = !fnOrVar(colDef?.editable, props);
|
|
4482
|
+
return (jsxRuntime.jsx("div", { className: clsx("ag-wrapper ag-input-wrapper ag-checkbox-input-wrapper", {
|
|
4483
|
+
"ag-checked": props.value,
|
|
4484
|
+
"ag-disabled": isDisabled,
|
|
4485
|
+
}), children: jsxRuntime.jsx("input", { type: "checkbox", className: "ag-input-field-input ag-checkbox-input", disabled: isDisabled, ref: inputRef, checked: value, onChange: () => { }, onClick: (e) => {
|
|
4482
4486
|
e.stopPropagation();
|
|
4483
4487
|
// cell has to be in edit mode
|
|
4484
4488
|
// if in non-edit mode clickInputWhenContainingCellClicked will click to put it in edit mode
|