fix: use ref to move contentDOM (#1960), fix #1942

This commit is contained in:
Philipp Kühn
2021-09-30 21:13:37 +02:00
committed by GitHub
parent f9493c289f
commit dead826250
3 changed files with 18 additions and 29 deletions

View File

@@ -2,7 +2,7 @@ import { createContext, useContext } from 'react'
export interface ReactNodeViewContextProps {
onDragStart: (event: DragEvent) => void,
maybeMoveContentDOM: () => void,
nodeViewContentRef: (element: HTMLElement | null) => void,
}
export const ReactNodeViewContext = createContext<Partial<ReactNodeViewContextProps>>({