X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/91fdf9e2d937de38309f1464b30cb699df4f6389..d416c9aa7b70da4f8998792a42616b991d882f26:/src/components/search-input/search-input.tsx

diff --git a/src/components/search-input/search-input.tsx b/src/components/search-input/search-input.tsx
index 955cf5e5..50338f40 100644
--- a/src/components/search-input/search-input.tsx
+++ b/src/components/search-input/search-input.tsx
@@ -97,7 +97,7 @@ export const SearchInput = withStyles(styles)(
             if (nextProps.value !== this.props.value) {
                 this.setState({ value: nextProps.value });
             }
-            if (nextProps.selfClearProp !== this.state.selfClearProp) {
+            if (this.state.value !== '' && nextProps.selfClearProp && nextProps.selfClearProp !== this.state.selfClearProp) {
                 this.props.onSearch('');
                 this.setState({ selfClearProp: nextProps.selfClearProp });
             }
