MultiSelect: do not show empty results on free form inputs

This commit is contained in:
Paul Chavard 2021-05-20 13:11:49 +02:00
parent e0d8d096f2
commit 3313ea5885

View file

@ -165,7 +165,7 @@ function ComboMultipleDropdownList({
autocomplete={false} autocomplete={false}
/> />
</ComboboxTokenLabel> </ComboboxTokenLabel>
{results && ( {results && (results.length > 0 || !acceptNewValues) && (
<ComboboxPopover className="shadow-popup"> <ComboboxPopover className="shadow-popup">
{results.length === 0 && ( {results.length === 0 && (
<p> <p>