primereact 10.1.0 → 10.1.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.
@@ -1691,7 +1691,7 @@ var BodyRow = /*#__PURE__*/React.memo(function (props) {
1691
1691
  };
1692
1692
  var findPrevSelectableRow = function findPrevSelectableRow(row) {
1693
1693
  var prevRow = row.previousElementSibling;
1694
- return prevRow ? DomHandler.getAttribute(prevRow, 'data-p-selectable-row') === true : null;
1694
+ return prevRow ? DomHandler.getAttribute(prevRow, 'data-p-selectable-row') === true ? prevRow : findPrevSelectableRow(prevRow) : null;
1695
1695
  };
1696
1696
  var shouldRenderBodyCell = function shouldRenderBodyCell(value, column, i) {
1697
1697
  if (getColumnProp(column, 'hidden')) {
@@ -2591,7 +2591,7 @@ var TableBody = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
2591
2591
  }
2592
2592
  };
2593
2593
  var onRowClick = function onRowClick(event) {
2594
- if (allowCellSelection() || !allowSelection(event) || event.defaultPrevented) {
2594
+ if (event.defaultPrevented || event.originalEvent && event.originalEvent.defaultPrevented || allowCellSelection() || !allowSelection(event)) {
2595
2595
  return;
2596
2596
  }
2597
2597
  props.onRowClick && props.onRowClick(event);