mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-13 10:44:02 +02:00
Fix useTimeout type to use browser type instead of nodejs type (#4419)
This commit is contained in:
@@ -17,7 +17,7 @@ export function useAndroidInputManager(node: RefObject<HTMLElement>) {
|
||||
const editor = useSlateStatic()
|
||||
const [inputManager] = useState(() => new AndroidInputManager(editor))
|
||||
const { receivedUserInput, onUserInput } = useTrackUserInput()
|
||||
const timeoutId = useRef<NodeJS.Timeout | null>(null)
|
||||
const timeoutId = useRef<ReturnType<typeof setTimeout> | null>(null)
|
||||
const isReconciling = useRef(false)
|
||||
const flush = useCallback((mutations: MutationRecord[]) => {
|
||||
if (!receivedUserInput.current) {
|
||||
|
Reference in New Issue
Block a user