@vuu-ui/vuu-table 0.8.25-debug → 0.8.26-debug

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/cjs/index.js CHANGED
@@ -1742,7 +1742,7 @@ var useSelection = ({
1742
1742
  );
1743
1743
  selectedRef.current = newSelected;
1744
1744
  lastActiveRef.current = idx;
1745
- onSelect == null ? void 0 : onSelect(row);
1745
+ onSelect == null ? void 0 : onSelect(selectOperation === import_vuu_utils15.selectItem ? row : null);
1746
1746
  onSelectionChange == null ? void 0 : onSelectionChange(newSelected);
1747
1747
  },
1748
1748
  [onSelect, onSelectionChange, selectionModel]
@@ -1752,9 +1752,7 @@ var useSelection = ({
1752
1752
  if (isSelectionEvent(e)) {
1753
1753
  const { current: rowIndex } = highlightedIndexRef;
1754
1754
  if (rowIndex !== void 0 && rowIndex !== -1) {
1755
- const rowEl = e.target.querySelector(
1756
- `[aria-rowindex="${rowIndex}"]`
1757
- );
1755
+ const rowEl = (0, import_vuu_utils15.getRowElementAtIndex)(e.target, rowIndex);
1758
1756
  if (rowEl) {
1759
1757
  (0, import_vuu_utils15.dispatchMouseEvent)(rowEl, "click");
1760
1758
  }