Show no matches found when visibleOptions is empty

pull/2773/head
Uku Taht 4 years ago
parent fde4ce8ce8
commit ff511787e6

@ -157,7 +157,7 @@ export default function PlausibleCombobox(props) {
}, [])
const matchesFound = !loading && visibleOptions.length > 0
const noMatchesFound = !loading && !props.freeChoice && options.length === 0
const noMatchesFound = !loading && visibleOptions.length === 0
return (
<div onKeyDown={onKeyDown} ref={containerRef} className="relative ml-2 w-full">

Loading…
Cancel
Save