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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primereact",
3
- "version": "10.1.0",
3
+ "version": "10.1.1",
4
4
  "private": false,
5
5
  "author": "PrimeTek Informatics",
6
6
  "description": "PrimeReact is an open source UI library for React featuring a rich set of 90+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeBlock, which has 370+ ready to use UI blocks to build spectacular applications in no time.",
@@ -12073,8 +12073,6 @@ var Calendar = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
12073
12073
  overlayRef.current.style.width = DomHandler.getOuterWidth(overlayRef.current) + 'px';
12074
12074
  }
12075
12075
  }
12076
- } else {
12077
- alignOverlay();
12078
12076
  }
12079
12077
  if (props.value) {
12080
12078
  updateInputfield(props.value);
@@ -22853,7 +22851,7 @@ var BodyRow = /*#__PURE__*/React__namespace.memo(function (props) {
22853
22851
  };
22854
22852
  var findPrevSelectableRow = function findPrevSelectableRow(row) {
22855
22853
  var prevRow = row.previousElementSibling;
22856
- return prevRow ? DomHandler.getAttribute(prevRow, 'data-p-selectable-row') === true : null;
22854
+ return prevRow ? DomHandler.getAttribute(prevRow, 'data-p-selectable-row') === true ? prevRow : findPrevSelectableRow(prevRow) : null;
22857
22855
  };
22858
22856
  var shouldRenderBodyCell = function shouldRenderBodyCell(value, column, i) {
22859
22857
  if (getColumnProp(column, 'hidden')) {
@@ -23753,7 +23751,7 @@ var TableBody = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespac
23753
23751
  }
23754
23752
  };
23755
23753
  var onRowClick = function onRowClick(event) {
23756
- if (allowCellSelection() || !allowSelection(event) || event.defaultPrevented) {
23754
+ if (event.defaultPrevented || event.originalEvent && event.originalEvent.defaultPrevented || allowCellSelection() || !allowSelection(event)) {
23757
23755
  return;
23758
23756
  }
23759
23757
  props.onRowClick && props.onRowClick(event);