fix: regression in tooltips, autocomplete and font

This commit is contained in:
Taranto 2020-09-09 16:38:20 +01:00 committed by Josh Harvey
parent 6f5cb385b0
commit 99b400f21c
18 changed files with 348 additions and 277 deletions

View file

@ -29,7 +29,10 @@ const AutocompleteFormik = ({ options, ...props }) => {
error={error}
open={open}
options={innerOptions}
onOpen={() => setOpen(value?.length !== props?.limit)}
onOpen={() => {
if (!props.multiple) return setOpen(true)
setOpen(value?.length !== props.limit)
}}
onClose={() => setOpen(false)}
{...props}
/>