@patternfly/react-table 4.90.17 → 4.91.2

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/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 4.91.2 (2022-06-15)
7
+
8
+ **Note:** Version bump only for package @patternfly/react-table
9
+
10
+
11
+
12
+
13
+
14
+ ## 4.91.1 (2022-06-15)
15
+
16
+ **Note:** Version bump only for package @patternfly/react-table
17
+
18
+
19
+
20
+
21
+
22
+ # 4.91.0 (2022-06-14)
23
+
24
+
25
+ ### Features
26
+
27
+ * **Form:** add functionality for form group roles ([#7516](https://github.com/patternfly/patternfly-react/issues/7516)) ([4ff2f54](https://github.com/patternfly/patternfly-react/commit/4ff2f54ce21363e9c40c47517f20b8fc5e0cb401))
28
+
29
+
30
+
31
+
32
+
6
33
  ## 4.90.17 (2022-06-14)
7
34
 
8
35
  **Note:** Version bump only for package @patternfly/react-table
@@ -6258,21 +6258,28 @@
6258
6258
  this.refCollection[this.state.viewMoreNextIndex][0].focus();
6259
6259
  this.setState({ viewMoreNextIndex: -1 });
6260
6260
  }
6261
+ const checkUpdatedChildren = (prevChildren, currChildren) => prevChildren.some((prevChild, index) => {
6262
+ const prevChildProps = prevChild.props;
6263
+ const currChild = currChildren[index];
6264
+ const { props: currChildProps } = currChild;
6265
+ if (prevChildProps && currChildProps) {
6266
+ return (prevChildProps.value !== currChildProps.value ||
6267
+ prevChildProps.label !== currChildProps.label ||
6268
+ prevChildProps.isDisabled !== currChildProps.isDisabled ||
6269
+ prevChildProps.isPlaceholder !== currChildProps.isPlaceholder);
6270
+ }
6271
+ else {
6272
+ return prevChild !== currChild;
6273
+ }
6274
+ });
6261
6275
  const hasUpdatedChildren = prevProps.children.length !== this.props.children.length ||
6262
- prevProps.children.some((prevChild, index) => {
6263
- const prevChildProps = prevChild.props;
6264
- const currChild = this.props.children[index];
6265
- const { props: currChildProps } = currChild;
6266
- if (prevChildProps && currChildProps) {
6267
- return (prevChildProps.value !== currChildProps.value ||
6268
- prevChildProps.label !== currChildProps.label ||
6269
- prevChildProps.isDisabled !== currChildProps.isDisabled ||
6270
- prevChildProps.isPlaceholder !== currChildProps.isPlaceholder);
6271
- }
6272
- else {
6273
- return prevChild !== currChild;
6274
- }
6275
- });
6276
+ checkUpdatedChildren(prevProps.children, this.props.children) ||
6277
+ (this.props.isGrouped &&
6278
+ prevProps.children.some((prevChild, index) => prevChild.type === SelectGroup &&
6279
+ prevChild.props.children &&
6280
+ this.props.children[index].props.children &&
6281
+ (prevChild.props.children.length !== this.props.children[index].props.children.length ||
6282
+ checkUpdatedChildren(prevChild.props.children, this.props.children[index].props.children))));
6276
6283
  if (hasUpdatedChildren) {
6277
6284
  this.updateTypeAheadFilteredChildren(prevState.typeaheadInputValue || '', null);
6278
6285
  }