Skip to content

Commit 0ea2685

Browse files
MariaAgaofedoren
authored andcommitted
Fixes #38141 - Hide search submit button when not submittable
1 parent 27ee772 commit 0ea2685

File tree

1 file changed

+1
-1
lines changed
  • webpack/assets/javascripts/react_app/components/SearchBar

1 file changed

+1
-1
lines changed

webpack/assets/javascripts/react_app/components/SearchBar/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const SearchBar = ({
6262
}
6363
onSearchChange={_onSearchChange}
6464
value={search}
65-
onSearch={_onSearch}
65+
onSearch={onSearch && _onSearch}
6666
disabled={disabled}
6767
error={error}
6868
name={name}

0 commit comments

Comments
 (0)