Remove logging

This commit is contained in:
Sam Becker 2024-02-03 23:51:57 -06:00
parent f4913db81e
commit 84481ea6cf

View File

@ -65,7 +65,6 @@ export default function TagInput({
const ref = optionsRef.current; const ref = optionsRef.current;
const options = ref?.querySelectorAll('div'); const options = ref?.querySelectorAll('div');
const option = options?.[selectedOptionIndex] as HTMLElement | undefined; const option = options?.[selectedOptionIndex] as HTMLElement | undefined;
console.log({options, option: option?.innerHTML});
option?.focus(); option?.focus();
} }
}, [selectedOptionIndex]); }, [selectedOptionIndex]);
@ -198,7 +197,6 @@ export default function TagInput({
addOption(option); addOption(option);
inputRef.current?.focus(); inputRef.current?.focus();
setInputText(''); setInputText('');
// setHasFocus(false);
}} }}
> >
{option} {option}