Remove logging
This commit is contained in:
parent
f4913db81e
commit
84481ea6cf
@ -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}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user