diff --git a/frontend/src/lib/components/PropertyFilters/components/PropertyValue.tsx b/frontend/src/lib/components/PropertyFilters/components/PropertyValue.tsx index 8f6cb1e96a68b..673bd426629bf 100644 --- a/frontend/src/lib/components/PropertyFilters/components/PropertyValue.tsx +++ b/frontend/src/lib/components/PropertyFilters/components/PropertyValue.tsx @@ -129,7 +129,7 @@ export function PropertyValue({ value={formattedValues} mode={isMultiSelect ? 'multiple' : 'single'} allowCustomValues - onChange={(nextVal) => setValue(nextVal)} + onChange={(nextVal) => (isMultiSelect ? setValue(nextVal) : setValue(nextVal[0]))} onInputChange={onSearchTextChange} placeholder={placeholder} options={displayOptions.map(({ name: _name }, index) => { diff --git a/frontend/src/lib/lemon-ui/LemonInputSelect/LemonInputSelect.tsx b/frontend/src/lib/lemon-ui/LemonInputSelect/LemonInputSelect.tsx index f3e39c46f1e11..967f18e323753 100644 --- a/frontend/src/lib/lemon-ui/LemonInputSelect/LemonInputSelect.tsx +++ b/frontend/src/lib/lemon-ui/LemonInputSelect/LemonInputSelect.tsx @@ -157,7 +157,7 @@ export function LemonInputSelect({ } } else if (e.key === 'ArrowDown') { e.preventDefault() - setSelectedIndex(Math.min(selectedIndex + 1, options.length - 1)) + setSelectedIndex(Math.min(selectedIndex + 1, visibleOptions.length - 1)) } else if (e.key === 'ArrowUp') { e.preventDefault() setSelectedIndex(Math.max(selectedIndex - 1, 0))