@patternfly/react-table 4.94.10 → 4.95.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/CHANGELOG.md +30 -0
- package/dist/umd/react-table.css +340 -340
- package/dist/umd/react-table.js +23 -25
- package/dist/umd/react-table.min.css +307 -307
- package/dist/umd/react-table.min.js +1 -1
- package/package.json +6 -6
package/dist/umd/react-table.js
CHANGED
|
@@ -6255,32 +6255,30 @@
|
|
|
6255
6255
|
this.refCollection[this.state.viewMoreNextIndex][0].focus();
|
|
6256
6256
|
this.setState({ viewMoreNextIndex: -1 });
|
|
6257
6257
|
}
|
|
6258
|
-
|
|
6259
|
-
const
|
|
6260
|
-
|
|
6261
|
-
|
|
6262
|
-
|
|
6263
|
-
|
|
6264
|
-
|
|
6265
|
-
|
|
6266
|
-
|
|
6267
|
-
prevChildProps.isPlaceholder !== currChildProps.isPlaceholder);
|
|
6268
|
-
}
|
|
6269
|
-
else {
|
|
6270
|
-
return prevChild !== currChild;
|
|
6271
|
-
}
|
|
6272
|
-
});
|
|
6273
|
-
const hasUpdatedChildren = prevProps.children.length !== this.props.children.length ||
|
|
6274
|
-
checkUpdatedChildren(prevProps.children, this.props.children) ||
|
|
6275
|
-
(this.props.isGrouped &&
|
|
6276
|
-
Array.from(prevProps.children).some((prevChild, index) => prevChild.type === SelectGroup &&
|
|
6277
|
-
prevChild.props.children &&
|
|
6278
|
-
this.props.children[index].props.children &&
|
|
6279
|
-
(prevChild.props.children.length !== this.props.children[index].props.children.length ||
|
|
6280
|
-
checkUpdatedChildren(prevChild.props.children, this.props.children[index].props.children))));
|
|
6281
|
-
if (hasUpdatedChildren) {
|
|
6282
|
-
this.updateTypeAheadFilteredChildren(prevState.typeaheadInputValue || '', null);
|
|
6258
|
+
const checkUpdatedChildren = (prevChildren, currChildren) => Array.from(prevChildren).some((prevChild, index) => {
|
|
6259
|
+
const prevChildProps = prevChild.props;
|
|
6260
|
+
const currChild = currChildren[index];
|
|
6261
|
+
const { props: currChildProps } = currChild;
|
|
6262
|
+
if (prevChildProps && currChildProps) {
|
|
6263
|
+
return (prevChildProps.value !== currChildProps.value ||
|
|
6264
|
+
prevChildProps.label !== currChildProps.label ||
|
|
6265
|
+
prevChildProps.isDisabled !== currChildProps.isDisabled ||
|
|
6266
|
+
prevChildProps.isPlaceholder !== currChildProps.isPlaceholder);
|
|
6283
6267
|
}
|
|
6268
|
+
else {
|
|
6269
|
+
return prevChild !== currChild;
|
|
6270
|
+
}
|
|
6271
|
+
});
|
|
6272
|
+
const hasUpdatedChildren = prevProps.children.length !== this.props.children.length ||
|
|
6273
|
+
checkUpdatedChildren(prevProps.children, this.props.children) ||
|
|
6274
|
+
(this.props.isGrouped &&
|
|
6275
|
+
Array.from(prevProps.children).some((prevChild, index) => prevChild.type === SelectGroup &&
|
|
6276
|
+
prevChild.props.children &&
|
|
6277
|
+
this.props.children[index].props.children &&
|
|
6278
|
+
(prevChild.props.children.length !== this.props.children[index].props.children.length ||
|
|
6279
|
+
checkUpdatedChildren(prevChild.props.children, this.props.children[index].props.children))));
|
|
6280
|
+
if (hasUpdatedChildren) {
|
|
6281
|
+
this.updateTypeAheadFilteredChildren(prevState.typeaheadInputValue || '', null);
|
|
6284
6282
|
}
|
|
6285
6283
|
// for menus with favorites,
|
|
6286
6284
|
// if the number of favorites or typeahead filtered children has changed, the generated
|