@cashub/ui 0.22.10 → 0.22.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/table/Table.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cashub/ui",
3
- "version": "0.22.10",
3
+ "version": "0.22.11",
4
4
  "private": false,
5
5
  "author": "CASHUB Team",
6
6
  "description": "CASHUB UI components library",
package/table/Table.js CHANGED
@@ -166,6 +166,7 @@ const Table = _ref => {
166
166
  }
167
167
  let isCustom = false;
168
168
  let renderedData = null;
169
+ const customContent = customPop ? customPop(value, row) : null;
169
170
  if (custom && render) {
170
171
  // call render function to get custom data(fully)
171
172
  isCustom = true;
@@ -174,7 +175,7 @@ const Table = _ref => {
174
175
  // call render function to get custom data(part)
175
176
  renderedData = /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
176
177
  id: key,
177
- onClick: event => showFullValue(event, customPop),
178
+ onClick: event => showFullValue(event, customContent),
178
179
  children: render ? render(value, row) : String(value)
179
180
  });
180
181
  }