@@ -38,6 +49,8 @@ const SearchForm = () => {
onSubmit={handleSubmit}
labelText="Search Bar Label"
selectProps={{
+ value: searchScope,
+ onChange: (e) => handleChange(e, setSearchScope),
labelText: "Select a category",
name: "search_scope",
optionsData: [
@@ -50,6 +63,8 @@ const SearchForm = () => {
],
}}
textInputProps={{
+ onChange: (e) => handleChange(e, setSearchTerm),
+ value: searchTerm,
labelText:
"Search by keyword, title, journal title, or author/contributor",
name: "q",