This commit is contained in:
Nate Sesti 2023-07-22 23:16:51 -07:00
parent 4d7e72970f
commit 8c8f3f546e

View file

@ -178,6 +178,9 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => {
};
})
);
})
.catch((err) => {
console.error(err);
});
return;
}
@ -194,10 +197,6 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => {
});
useEffect(() => {
console.log(
"downshiftProps.highlightedIndex",
downshiftProps.highlightedIndex
);
if (downshiftProps.highlightedIndex < 0) {
downshiftProps.setHighlightedIndex(0);
}