Skip to content

Commit 89f3d74

Browse files
authored
changed action cuase from searchboxSubmit to omniboxAnalytics (#56)
1 parent ee7350b commit 89f3d74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Components/SearchBox.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default class SearchBox extends React.Component {
5151
this.headlessSearchBox.updateText(newInputValue);
5252
}}
5353
onChange={() => {
54-
this.headlessSearchBox.submit();
54+
this.headlessSearchBox.selectSuggestion(this.headlessSearchBox.state.value);
5555
}}
5656
options={this.state.suggestions.map((s) => s.rawValue)}
5757
renderInput={(params) => (

0 commit comments

Comments
 (0)