diff --git a/frontend/src/components/EditableTags.tsx b/frontend/src/components/EditableTags.tsx index 1e3a86a..18387a2 100644 --- a/frontend/src/components/EditableTags.tsx +++ b/frontend/src/components/EditableTags.tsx @@ -37,6 +37,7 @@ export function EditableTags({ const [isCreating, setIsCreating] = useState(false); const [saveError, setSaveError] = useState(null); const inputRef = useRef(null); + const focusedOptionRef = useRef(null); const resetState = () => { setInputValue(''); @@ -182,6 +183,10 @@ export function EditableTags({ } }; + useEffect(() => { + focusedOptionRef.current?.scrollIntoView({block: 'nearest'}); + }, [focusedIndex]); + useEffect(() => { if (isEditing && inputRef.current) { inputRef.current.focus(); @@ -271,6 +276,7 @@ export function EditableTags({
{showCreateOption && (