@patternfly/react-table 4.110.11 → 4.110.13

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.
@@ -6383,7 +6383,10 @@
6383
6383
  }
6384
6384
  // Move focus to top of the menu if state.focusFirstOption was updated to true and the menu does not have custom content
6385
6385
  if (!prevState.focusFirstOption && this.state.focusFirstOption && !this.props.customContent) {
6386
- const firstRef = this.refCollection.find(ref => ref !== null);
6386
+ const firstRef = this.refCollection.find(ref =>
6387
+ // If a select option is disabled then ref[0] will be undefined, so we want to return
6388
+ // the first ref that both a) is not null and b) is not disabled.
6389
+ ref !== null && ref[0]);
6387
6390
  if (firstRef && firstRef[0]) {
6388
6391
  firstRef[0].focus();
6389
6392
  }