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 1d72fe6 commit 059a8ddCopy full SHA for 059a8dd
components/searchBar/index.tsx
@@ -61,7 +61,7 @@ export default function SearchBar({
61
if (event) event.preventDefault();
62
63
// When input value is null, set error & empty state to `true` and do nothing.
64
- if (!query || !inputRef.current.value) {
+ if (!inputRef.current.value) {
65
setIsError(true);
66
setIsEmpty(true);
67
return;
@@ -81,7 +81,7 @@ export default function SearchBar({
81
style={{ marginRight: -12 }}
82
onClick={() => handleSubmit()}
83
aria-label="Search"
84
- disabled={isEmpty}
+ disabled={!smallScreen && isEmpty}
85
>
86
<Search />
87
</IconButton>
0 commit comments