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} onFocus={onFocus}
onKeyDown={onKeyDown} onKeyDown={onKeyDown}
/> />
{dropdownVisible && ( {dropdownVisible && (autocompleteTagResults.length > 0 || autocompleteTagHintVisible) && (
<DisclosurePanel <DisclosurePanel
ref={dropdownRef} ref={dropdownRef}
className="sn-dropdown w-80 flex flex-col py-2 absolute" className="sn-dropdown w-80 flex flex-col py-2 absolute"