@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.
@@ -6255,32 +6255,30 @@
6255
6255
  this.refCollection[this.state.viewMoreNextIndex][0].focus();
6256
6256
  this.setState({ viewMoreNextIndex: -1 });
6257
6257
  }
6258
- if (this.props.variant === 'typeahead' || this.props.variant === 'typeaheadmulti') {
6259
- const checkUpdatedChildren = (prevChildren, currChildren) => Array.from(prevChildren).some((prevChild, index) => {
6260
- const prevChildProps = prevChild.props;
6261
- const currChild = currChildren[index];
6262
- const { props: currChildProps } = currChild;
6263
- if (prevChildProps && currChildProps) {
6264
- return (prevChildProps.value !== currChildProps.value ||
6265
- prevChildProps.label !== currChildProps.label ||
6266
- prevChildProps.isDisabled !== currChildProps.isDisabled ||
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