@patternfly/react-table 4.110.12 → 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.
- package/CHANGELOG.md +8 -0
- package/dist/umd/react-table.css +1000 -1000
- package/dist/umd/react-table.js +4 -1
- package/dist/umd/react-table.min.css +5733 -5733
- package/dist/umd/react-table.min.js +1 -1
- package/package.json +3 -3
package/dist/umd/react-table.js
CHANGED
|
@@ -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 =>
|
|
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
|
}
|