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 966aab2 commit 4eae003Copy full SHA for 4eae003
src/pages/SearchPage.tsx
@@ -268,7 +268,9 @@ const SearchPage: React.FC = () => {
268
>
269
<Button
270
variant="contained"
271
- onClick={() => document.querySelector("form")?.requestSubmit()}
+ // onClick={() => document.querySelector("form")?.requestSubmit()}
272
+ type="submit"
273
+ form="search-form"
274
sx={{
275
backgroundColor: Colors.purple,
276
color: Colors.white,
@@ -296,6 +298,7 @@ const SearchPage: React.FC = () => {
296
298
</Button>
297
299
</Box>
300
<Form
301
+ id="search-form"
302
schema={schema}
303
onSubmit={handleSubmit}
304
validator={validator}
0 commit comments