@ctlyst.id/internal-ui 4.1.10 → 4.1.11

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.mjs CHANGED
@@ -1223,7 +1223,6 @@ var DataTable = React5.forwardRef((props, ref) => {
1223
1223
  }
1224
1224
  }
1225
1225
  `,
1226
- pointerEvents: isRowDisabled && isRowDisabled(row.original) ? "none" : "auto",
1227
1226
  cursor: isRowDisabled && isRowDisabled(row.original) ? "default" : "pointer",
1228
1227
  onMouseDown: (e) => {
1229
1228
  var _a2;
@@ -1234,7 +1233,7 @@ var DataTable = React5.forwardRef((props, ref) => {
1234
1233
  (_a2 = e.currentTarget) == null ? void 0 : _a2.removeAttribute("data-active");
1235
1234
  },
1236
1235
  onClick: () => {
1237
- if (onRowClick) {
1236
+ if (onRowClick && isRowDisabled && !isRowDisabled(row.original)) {
1238
1237
  onRowClick(row.original);
1239
1238
  }
1240
1239
  },