@bigbinary/neeto-atoms 1.0.34 → 1.0.35

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.
@@ -3456,8 +3456,12 @@ const useColumnVisibility = ({ columnVisibility: controlledVisibility, onColumnV
3456
3456
  controlledOnChange?.(updaterOrValue);
3457
3457
  }, [visibility, isControlled, controlledOnChange]);
3458
3458
  const hideColumn = React.useCallback((columnId) => {
3459
- onColumnVisibilityChange(old => ({ ...old, [columnId]: false }));
3460
- onColumnHide?.(columnId);
3459
+ if (onColumnHide) {
3460
+ onColumnHide(columnId);
3461
+ }
3462
+ else {
3463
+ onColumnVisibilityChange(old => ({ ...old, [columnId]: false }));
3464
+ }
3461
3465
  }, [onColumnVisibilityChange, onColumnHide]);
3462
3466
  const showColumn = React.useCallback((columnId) => {
3463
3467
  onColumnVisibilityChange(old => ({ ...old, [columnId]: true }));
@@ -3849,4 +3853,4 @@ exports.useColumnVisibility = useColumnVisibility;
3849
3853
  exports.useTablePagination = useTablePagination;
3850
3854
  exports.useTableSelection = useTableSelection;
3851
3855
  exports.useTableSort = useTableSort;
3852
- //# sourceMappingURL=DataTable-Bc9o5j6-.js.map
3856
+ //# sourceMappingURL=DataTable-Dg0pX7Ng.js.map