achery-ui 0.6.0 → 0.6.1

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.cjs CHANGED
@@ -1268,7 +1268,11 @@ function Table({
1268
1268
  {
1269
1269
  className: tr,
1270
1270
  "data-selected": isSelected,
1271
- onClick: onRowClick ? () => onRowClick(key, row) : void 0,
1271
+ onClick: onRowClick ? (e) => {
1272
+ const target = e.target;
1273
+ if (target.closest('a, button, input, select, textarea, [role="checkbox"], [role="button"]')) return;
1274
+ onRowClick(key, row);
1275
+ } : void 0,
1272
1276
  style: onRowClick ? { cursor: "pointer" } : void 0,
1273
1277
  children: columns.map((col) => /* @__PURE__ */ jsxRuntime.jsx("td", { className: col.mono ? tdMono : td, children: col.render ? col.render(row) : String(row[col.key] ?? "") }, col.key))
1274
1278
  },