mirror of
https://github.com/perfect-panel/ppanel-web.git
synced 2026-02-18 22:31:09 -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() {
|
function handleInputBlur() {
|
||||||
setTimeout(() => {
|
if (inputValue.trim()) addTag();
|
||||||
if (inputValue.trim()) {
|
setOpen(false);
|
||||||
addTag();
|
|
||||||
}
|
|
||||||
setOpen(false);
|
|
||||||
}, 200);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleRemoveTag(index: number) {
|
function handleRemoveTag(index: number) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user