We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7a3c36 commit 1bc345bCopy full SHA for 1bc345b
src/Omnibar.tsx
@@ -43,6 +43,7 @@ export default class Omnibar<T> extends React.PureComponent<
43
? results.slice(0, this.props.maxResults)
44
: results,
45
displayResults: results.length > 0,
46
+ selectedIndex: Math.min(this.state.selectedIndex, results.length - 1),
47
});
48
this.props.onQuery && this.props.onQuery(results);
49
0 commit comments