Skip to content

Commit

Permalink
Allow users to browse omnibar options without query (#3130)
Browse files Browse the repository at this point in the history
  • Loading branch information
gnestor authored and giladgray committed Nov 15, 2018
1 parent 3139c0f commit 110deb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/select/src/components/omnibar/omnibar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export class Omnibar<T> extends React.PureComponent<IOmnibarProps<T>> {
private renderQueryList = (listProps: IQueryListRendererProps<T>) => {
const { inputProps = {}, isOpen, overlayProps = {} } = this.props;
const { handleKeyDown, handleKeyUp } = listProps;
const handlers = isOpen && listProps.query.length > 0 ? { onKeyDown: handleKeyDown, onKeyUp: handleKeyUp } : {};
const handlers = isOpen ? { onKeyDown: handleKeyDown, onKeyUp: handleKeyUp } : {};

return (
<Overlay
Expand Down

0 comments on commit 110deb8

Please sign in to comment.