@postxl/ui-components 1.3.8 → 1.3.9

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/index.js CHANGED
@@ -4301,8 +4301,9 @@ function DataGrid({ dataGridRef, headerRef, rowMapRef, footerRef, table, rowVirt
4301
4301
  //#endregion
4302
4302
  //#region src/data-grid/cell-variants/checkbox-cell.tsx
4303
4303
  function CheckboxCell({ cell, table, rowIndex, columnId, isFocused, isSelected }) {
4304
- const initialValue = cell.getValue();
4305
- const [value, setValue] = React$24.useState(Boolean(initialValue));
4304
+ const cellValue = cell.getValue();
4305
+ const cellValueAsBoolean = Boolean(cellValue);
4306
+ const [value, setValue] = React$24.useState(cellValueAsBoolean);
4306
4307
  const containerRef = React$24.useRef(null);
4307
4308
  const meta = table.options.meta;
4308
4309
  const colMeta = cell.column.columnDef.meta;
@@ -4338,8 +4339,8 @@ function CheckboxCell({ cell, table, rowIndex, columnId, isFocused, isSelected }
4338
4339
  isEditable
4339
4340
  ]);
4340
4341
  React$24.useEffect(() => {
4341
- setValue(Boolean(initialValue));
4342
- }, [initialValue]);
4342
+ setValue(cellValueAsBoolean);
4343
+ }, [cellValueAsBoolean]);
4343
4344
  React$24.useEffect(() => {
4344
4345
  if (isFocused && !meta?.searchOpen && !meta?.isScrolling && containerRef.current) containerRef.current.focus();
4345
4346
  }, [