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.
@@ -1685,7 +1685,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact, componentbase
1685
1685
  };
1686
1686
  var findPrevSelectableRow = function findPrevSelectableRow(row) {
1687
1687
  var prevRow = row.previousElementSibling;
1688
- return prevRow ? utils.DomHandler.getAttribute(prevRow, 'data-p-selectable-row') === true : null;
1688
+ return prevRow ? utils.DomHandler.getAttribute(prevRow, 'data-p-selectable-row') === true ? prevRow : findPrevSelectableRow(prevRow) : null;
1689
1689
  };
1690
1690
  var shouldRenderBodyCell = function shouldRenderBodyCell(value, column, i) {
1691
1691
  if (getColumnProp(column, 'hidden')) {
@@ -2585,7 +2585,7 @@ this.primereact.datatable = (function (exports, React, PrimeReact, componentbase
2585
2585
  }
2586
2586
  };
2587
2587
  var onRowClick = function onRowClick(event) {
2588
- if (allowCellSelection() || !allowSelection(event) || event.defaultPrevented) {
2588
+ if (event.defaultPrevented || event.originalEvent && event.originalEvent.defaultPrevented || allowCellSelection() || !allowSelection(event)) {
2589
2589
  return;
2590
2590
  }
2591
2591
  props.onRowClick && props.onRowClick(event);