diff options
author | bobzel <zzzman@gmail.com> | 2022-10-25 14:34:53 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-10-25 14:34:53 -0400 |
commit | 3b1162f58fd854091fca515dfe9af942d2220108 (patch) | |
tree | ac2e44f220b8ebf3debbf57097ab7d3a156f843c /src/client/util/DragManager.ts | |
parent | ba73479fe6c0594ebe37eed6cf295e5adc49c8e1 (diff) |
fixed up dragging fields from key value pane to support numbers
Diffstat (limited to 'src/client/util/DragManager.ts')
-rw-r--r-- | src/client/util/DragManager.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/util/DragManager.ts b/src/client/util/DragManager.ts index 899764866..36e5a65fb 100644 --- a/src/client/util/DragManager.ts +++ b/src/client/util/DragManager.ts @@ -24,7 +24,7 @@ export type dropActionType = 'alias' | 'copy' | 'move' | 'same' | 'proto' | 'non * @param dropAction: What to do with the document when it is dropped * @param dragStarted: Method to call when the drag is started */ -export function SetupDrag(_reference: React.RefObject<HTMLElement>, docFunc: () => Doc | Promise<Doc> | undefined, moveFunc?: DragManager.MoveFunction, dropAction?: dropActionType, dragStarted?: () => void) { +export function SetupDrag(_reference: React.RefObject<HTMLElement>, docFunc: () => Doc | Promise<Doc | undefined> | undefined, moveFunc?: DragManager.MoveFunction, dropAction?: dropActionType, dragStarted?: () => void) { const onRowMove = async (e: PointerEvent) => { e.stopPropagation(); e.preventDefault(); |