@patternfly/react-table 4.31.7 → 4.31.11

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": "@patternfly/react-table",
3
- "version": "4.31.7",
3
+ "version": "4.31.11",
4
4
  "description": "This library provides a set of React table components for use with the PatternFly 4",
5
5
  "main": "dist/js/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -31,10 +31,10 @@
31
31
  "clean": "rimraf dist"
32
32
  },
33
33
  "dependencies": {
34
- "@patternfly/react-core": "^4.162.2",
35
- "@patternfly/react-icons": "^4.13.0",
36
- "@patternfly/react-styles": "^4.12.4",
37
- "@patternfly/react-tokens": "^4.14.0",
34
+ "@patternfly/react-core": "^4.162.5",
35
+ "@patternfly/react-icons": "^4.13.1",
36
+ "@patternfly/react-styles": "^4.12.5",
37
+ "@patternfly/react-tokens": "^4.14.1",
38
38
  "lodash": "^4.17.19",
39
39
  "tslib": "^2.0.0"
40
40
  },
@@ -46,5 +46,5 @@
46
46
  "react": "^16.8.0 || ^17.0.0",
47
47
  "react-dom": "^16.8.0 || ^17.0.0"
48
48
  },
49
- "gitHead": "723b9279c92a5d98baa87ab7d246cf1b4cbda058"
49
+ "gitHead": "257056ac06e7928bc56f9942ba0407719fd03663"
50
50
  }
@@ -152,7 +152,9 @@ export class Table extends React.Component<TableProps, {}> {
152
152
  if (rows === undefined || rows.length === 0) {
153
153
  return false;
154
154
  }
155
- return rows.every(row => this.isSelected(row) || (row.hasOwnProperty('parent') && !row.showSelect));
155
+ return rows.every(
156
+ row => this.isSelected(row) || row.disableSelection || (row.hasOwnProperty('parent') && !row.showSelect)
157
+ );
156
158
  };
157
159
 
158
160
  render() {
@@ -556,7 +556,9 @@ class SelectableTable extends React.Component {
556
556
  let rows;
557
557
  if (rowId === -1) {
558
558
  rows = this.state.rows.map(oneRow => {
559
- oneRow.selected = isSelected;
559
+ if (!oneRow.disableSelection) {
560
+ oneRow.selected = isSelected;
561
+ }
560
562
  return oneRow;
561
563
  });
562
564
  } else {