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.
@@ -12046,8 +12046,6 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
12046
12046
  overlayRef.current.style.width = DomHandler.getOuterWidth(overlayRef.current) + 'px';
12047
12047
  }
12048
12048
  }
12049
- } else {
12050
- alignOverlay();
12051
12049
  }
12052
12050
  if (props.value) {
12053
12051
  updateInputfield(props.value);
@@ -22826,7 +22824,7 @@ var BodyRow = /*#__PURE__*/React.memo(function (props) {
22826
22824
  };
22827
22825
  var findPrevSelectableRow = function findPrevSelectableRow(row) {
22828
22826
  var prevRow = row.previousElementSibling;
22829
- return prevRow ? DomHandler.getAttribute(prevRow, 'data-p-selectable-row') === true : null;
22827
+ return prevRow ? DomHandler.getAttribute(prevRow, 'data-p-selectable-row') === true ? prevRow : findPrevSelectableRow(prevRow) : null;
22830
22828
  };
22831
22829
  var shouldRenderBodyCell = function shouldRenderBodyCell(value, column, i) {
22832
22830
  if (getColumnProp(column, 'hidden')) {
@@ -23726,7 +23724,7 @@ var TableBody = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
23726
23724
  }
23727
23725
  };
23728
23726
  var onRowClick = function onRowClick(event) {
23729
- if (allowCellSelection() || !allowSelection(event) || event.defaultPrevented) {
23727
+ if (event.defaultPrevented || event.originalEvent && event.originalEvent.defaultPrevented || allowCellSelection() || !allowSelection(event)) {
23730
23728
  return;
23731
23729
  }
23732
23730
  props.onRowClick && props.onRowClick(event);