(event: React.FormEvent<HTMLFormElement>)
| 67 | } |
| 68 | |
| 69 | function onSubmit(event: React.FormEvent<HTMLFormElement>) { |
| 70 | if (!searchAsYouType) { |
| 71 | refine(inputValue); |
| 72 | } |
| 73 | |
| 74 | if (props.onSubmit) { |
| 75 | props.onSubmit(event); |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | // Track when the InstantSearch query changes to synchronize it with |
| 80 | // the React state. |
no test coverage detected