fix: don't show dropdown if there are no results

This commit is contained in:
Antonella Sgarlatta
2021-06-03 20:10:17 -03:00
parent e7fc2066c2
commit ff0270f1ac

View File

@@ -106,7 +106,7 @@ export const AutocompleteTagInput = observer(({ appState }: Props) => {
onFocus={onFocus}
onKeyDown={onKeyDown}
/>
{dropdownVisible && (
{dropdownVisible && (autocompleteTagResults.length > 0 || autocompleteTagHintVisible) && (
<DisclosurePanel
ref={dropdownRef}
className="sn-dropdown w-80 flex flex-col py-2 absolute"