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 6abbf82 commit 35cd733Copy full SHA for 35cd733
packages/web/src/components/search/SearchBox.js
@@ -448,11 +448,12 @@ const SearchBox = (props) => {
448
suggestion._category,
449
);
450
} else if (onChange) {
451
- onChange(suggestionValue, () =>
+ onChange(suggestionValue, ({ isOpen } = {}) =>
452
triggerQuery({
453
customQuery: true,
454
value: suggestionValue,
455
categoryValue: suggestion._category,
456
+ isOpen,
457
}),
458
459
}
@@ -720,7 +721,7 @@ const SearchBox = (props) => {
720
721
};
722
723
const handleFocus = (event) => {
- if (props.autosuggest && !onChange) {
724
+ if (props.autosuggest) {
725
setIsOpen(true);
726
727
if (props.onFocus) {
0 commit comments