fix(component): fix workspace input (#5381)
This commit is contained in:
@@ -14,7 +14,6 @@ import { useSetAtom } from 'jotai';
|
|||||||
import {
|
import {
|
||||||
type KeyboardEvent,
|
type KeyboardEvent,
|
||||||
type MouseEvent,
|
type MouseEvent,
|
||||||
startTransition,
|
|
||||||
useCallback,
|
useCallback,
|
||||||
useEffect,
|
useEffect,
|
||||||
useState,
|
useState,
|
||||||
@@ -119,9 +118,7 @@ export const ProfilePanel = ({ isOwner, workspace }: ProfilePanelProps) => {
|
|||||||
);
|
);
|
||||||
|
|
||||||
const handleSetInput = useCallback((value: string) => {
|
const handleSetInput = useCallback((value: string) => {
|
||||||
startTransition(() => {
|
setInput(value);
|
||||||
setInput(value);
|
|
||||||
});
|
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const handleKeyUp = useCallback(
|
const handleKeyUp = useCallback(
|
||||||
|
|||||||
Reference in New Issue
Block a user