@infinite-table/infinite-react 3.2.10 → 3.2.11

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/index.dev.js CHANGED
@@ -7313,6 +7313,10 @@ var useColumnPointerEvents = ({
7313
7313
  state: { domRef: rootRef }
7314
7314
  } = useInfiniteTable();
7315
7315
  const defaultPointerDown = (0, import_react21.useCallback)((e) => {
7316
+ const computedCol = getComputed().computedVisibleColumnsMap.get(columnId);
7317
+ if (!computedCol || !computedCol.computedSortable) {
7318
+ return;
7319
+ }
7316
7320
  const { multiSortBehavior } = getState();
7317
7321
  api.toggleSortingForColumn(columnId, {
7318
7322
  multiSortBehavior: multiSortBehavior === "replace" && (e.ctrlKey || e.metaKey) ? "append" : multiSortBehavior
@@ -18798,7 +18802,7 @@ var useLicense = (licenseKey = "") => {
18798
18802
  }
18799
18803
  let valid2 = isValidLicense(licenseKey, {
18800
18804
  publishedAt: 1624970570587,
18801
- version: "3.2.10"
18805
+ version: "3.2.11"
18802
18806
  });
18803
18807
  if (!licenseKey && !valid2 && isInsidePlayground) {
18804
18808
  return true;
package/index.dev.mjs CHANGED
@@ -7284,6 +7284,10 @@ var useColumnPointerEvents = ({
7284
7284
  state: { domRef: rootRef }
7285
7285
  } = useInfiniteTable();
7286
7286
  const defaultPointerDown = useCallback8((e) => {
7287
+ const computedCol = getComputed().computedVisibleColumnsMap.get(columnId);
7288
+ if (!computedCol || !computedCol.computedSortable) {
7289
+ return;
7290
+ }
7287
7291
  const { multiSortBehavior } = getState();
7288
7292
  api.toggleSortingForColumn(columnId, {
7289
7293
  multiSortBehavior: multiSortBehavior === "replace" && (e.ctrlKey || e.metaKey) ? "append" : multiSortBehavior
@@ -18773,7 +18777,7 @@ var useLicense = (licenseKey = "") => {
18773
18777
  }
18774
18778
  let valid2 = isValidLicense(licenseKey, {
18775
18779
  publishedAt: 1624970570587,
18776
- version: "3.2.10"
18780
+ version: "3.2.11"
18777
18781
  });
18778
18782
  if (!licenseKey && !valid2 && isInsidePlayground) {
18779
18783
  return true;