We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e23559 commit 9566eedCopy full SHA for 9566eed
1 file changed
src/components/form/super_select/super_select.tsx
@@ -137,7 +137,10 @@ export class EuiSuperSelect<T extends string> extends Component<
137
focusSelected();
138
}
139
} else {
140
- this.focusItemAt(0);
+ const firstFocusableOption = this.props.options.findIndex(
141
+ ({ disabled }) => disabled !== true
142
+ );
143
+ this.focusItemAt(firstFocusableOption);
144
145
});
146
};
0 commit comments