//
// SPDX-License-Identifier: AGPL-3.0
-import * as React from 'react';
+import React from 'react';
import { compose } from 'redux';
import {
IconButton,
const handleInputClick = (e: React.MouseEvent, props: SearchBarViewProps) => {
if (props.searchValue) {
props.onSetView(SearchView.AUTOCOMPLETE);
- props.openSearchView();
} else {
- props.closeView();
+ props.onSetView(SearchView.BASIC);
}
+ props.openSearchView();
};
const handleDropdownClick = (e: React.MouseEvent, props: SearchBarViewProps) => {