fix(component): fix workspace input (#5381)

This commit is contained in:
EYHN
2023-12-22 16:26:14 +08:00
committed by GitHub
parent 77d239ff81
commit 8b28761a8a

View File

@@ -14,7 +14,6 @@ import { useSetAtom } from 'jotai';
import {
type KeyboardEvent,
type MouseEvent,
startTransition,
useCallback,
useEffect,
useState,
@@ -119,9 +118,7 @@ export const ProfilePanel = ({ isOwner, workspace }: ProfilePanelProps) => {
);
const handleSetInput = useCallback((value: string) => {
startTransition(() => {
setInput(value);
});
setInput(value);
}, []);
const handleKeyUp = useCallback(