🐛 fix: Simplify handleInputBlur function by removing unnecessary setTimeout

This commit is contained in:
web 2025-09-14 23:18:42 -07:00
parent e2a357fea7
commit 634156206a

View File

@ -85,12 +85,8 @@ export function TagInput({
}
function handleInputBlur() {
setTimeout(() => {
if (inputValue.trim()) {
addTag();
}
setOpen(false);
}, 200);
if (inputValue.trim()) addTag();
setOpen(false);
}
function handleRemoveTag(index: number) {