mirror of
https://github.com/perfect-panel/ppanel-web.git
synced 2026-02-11 02:41:12 -05:00
🐛 fix: Simplify handleInputBlur function by removing unnecessary setTimeout
This commit is contained in:
parent
e2a357fea7
commit
634156206a
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user