diff --git a/client/src/app/components/Autocomplete.tsx b/client/src/app/components/Autocomplete.tsx index d06dfd130d..aeebeaaa08 100644 --- a/client/src/app/components/Autocomplete.tsx +++ b/client/src/app/components/Autocomplete.tsx @@ -80,16 +80,10 @@ export const Autocomplete: React.FC = ({ }, [options, selections]); const filteredOptions = useMemo(() => { - // No input so do not filter! - if (!inputValue) { - return options; - } - - // filter to choose options that are 1. NOT selected, and 2. include the inputValue return options.filter( ({ id, name }) => selections.findIndex((s) => s.id === id) === -1 && - toString(name).toLowerCase().includes(inputValue.toLocaleLowerCase()) + toString(name).toLowerCase().includes(inputValue.toLowerCase()) ); }, [options, selections, inputValue]); @@ -191,7 +185,6 @@ export const Autocomplete: React.FC = ({ if (!event || !itemId) { return; } - event.stopPropagation(); focusTextInput(true); addSelectionByItemId(itemId);