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 af04ae1 commit 86adc65Copy full SHA for 86adc65
packages/autocomplete-core/src/getCompletion.ts
@@ -8,7 +8,7 @@ interface GetCompletionProps<TItem> {
8
export function getCompletion<TItem>({
9
state,
10
}: GetCompletionProps<TItem>): string | null {
11
- if (state.selectedItemId === null) {
+ if (state.isOpen === false || state.selectedItemId === null) {
12
return null;
13
}
14
0 commit comments