X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/61cd8fe9d4fe4dfeab443f31bbbc5effa5176765..e1605f7c93aeb41ae31e0dd88a9afd8709136b62:/src/views-components/search-bar/search-bar-view.tsx diff --git a/src/views-components/search-bar/search-bar-view.tsx b/src/views-components/search-bar/search-bar-view.tsx index 09b75bbf..8d767b2b 100644 --- a/src/views-components/search-bar/search-bar-view.tsx +++ b/src/views-components/search-bar/search-bar-view.tsx @@ -150,10 +150,9 @@ export const SearchBarView = withStyles(styles)( render() { const { children, ...props } = this.props; - const { classes, isPopoverOpen } = props; + const { classes } = props; return ( - +
@@ -163,9 +162,13 @@ export const SearchBarView = withStyles(styles)( {...props} width={this.getViewWidth()} anchorEl={this.viewAnchorRef.current}> - { - getView({ ...props }) - } + + + + {getView({ ...props })} ); @@ -179,16 +182,17 @@ export const SearchBarView = withStyles(styles)( ); -const SearchInput = (props: SearchBarViewProps) => { +const SearchInput = (props: SearchBarViewProps & { disableClickHandler?: boolean; autoFocus?: boolean }) => { const { classes } = props; return handleInputClick(e, props)} + onClick={e => !props.disableClickHandler && handleInputClick(e, props)} onKeyDown={e => handleKeyDown(e, props)} startAdornment={ @@ -213,14 +217,11 @@ const SearchInput = (props: SearchBarViewProps) => { const SearchViewContainer = (props: SearchBarViewProps & { width: number, anchorEl: HTMLElement | null, children: React.ReactNode }) =>