Skip to content

Commit

Permalink
fix: non-arrow drag controls (#1740)
Browse files Browse the repository at this point in the history
  • Loading branch information
KermanX committed Jul 8, 2024
1 parent 5c36122 commit 2957624
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/client/composables/useDragElements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export function useDragElementsUpdater(no: number) {
}
}

export function useDragElement(directive: DirectiveBinding | null, posRaw?: string | number | number[], markdownSource?: DragElementMarkdownSource, isArrow?: boolean) {
export function useDragElement(directive: DirectiveBinding | null, posRaw?: string | number | number[], markdownSource?: DragElementMarkdownSource, isArrow = false) {
function inject<T>(key: InjectionKey<T> | string): T | undefined {
return directive
? directiveInject(directive, key)
Expand Down

0 comments on commit 2957624

Please sign in to comment.