Skip to content

Commit

Permalink
fix: cursor stays where it's supposed to be (#343)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eunjae Lee committed Oct 12, 2020
1 parent 21739b4 commit bae4d62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/autocomplete-core/src/onInput.ts
Expand Up @@ -59,8 +59,8 @@ export function onInput<TItem>({
clearTimeout(lastStalledId);
}

setHighlightedIndex(props.defaultHighlightedIndex);
setQuery(query);
setHighlightedIndex(props.defaultHighlightedIndex);

if (query.length === 0 && props.openOnFocus === false) {
setStatus('idle');
Expand Down

0 comments on commit bae4d62

Please sign in to comment.