@luscii-healthtech/web-ui 30.10.0 → 30.10.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.
@@ -3875,11 +3875,20 @@ function TableBody(props) {
3875
3875
  ) },
3876
3876
  !props.isLoading && ((_a = props.items) === null || _a === void 0 ? void 0 : _a.map((item, index) => React__namespace.default.createElement(
3877
3877
  "tr",
3878
- { tabIndex: 0, className: classNames__default.default("ui-group", {
3879
- "ui-cursor-pointer ui-transition-colors ui-duration-300 ui-ease-in-out hover:ui-bg-blue-50 focus:ui-outline-primary": props.onRowClick,
3880
- "ui-cursor-default hover:ui-bg-white": !props.onRowClick,
3881
- "ui-bg-blue-100": isItemChecked(index)
3882
- }, props.className), onClick: generateRowClickHandler(item) },
3878
+ {
3879
+ /**
3880
+ * Not the best, but I'm re-adding what it existed in the TableBodyRow:
3881
+ * https://github.com/Luscii/web-ui/pull/820/files#diff-a4cc940bcb5cc070b340404e9d7fb626ab529bac099dba0cb0b8b2b0cbc274bfL67
3882
+ */
3883
+ key: JSON.stringify(item),
3884
+ tabIndex: 0,
3885
+ className: classNames__default.default("ui-group", {
3886
+ "ui-cursor-pointer ui-transition-colors ui-duration-300 ui-ease-in-out hover:ui-bg-blue-50 focus:ui-outline-primary": props.onRowClick,
3887
+ "ui-cursor-default hover:ui-bg-white": !props.onRowClick,
3888
+ "ui-bg-blue-100": isItemChecked(index)
3889
+ }, props.className),
3890
+ onClick: generateRowClickHandler(item)
3891
+ },
3883
3892
  props.isSelectable && React__namespace.default.createElement(
3884
3893
  "td",
3885
3894
  { className: "ui-px-2 first:ui-pl-6 last:ui-pr-6" },