Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-kurmanov authored Jul 3, 2024
1 parent 7330c6e commit dcd6121
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/dragdrop/choices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,15 @@ export class DragDropChoices extends DragDropCore<QuestionSelectBase> {

this.isBottom = null;

if (typeof this.onShortcutCreated === "function") {
this.onShortcutCreated(draggedElementShortcut);
}

return draggedElementShortcut;
}

public onShortcutCreated: (node: HTMLElement) => void;

private createImagePickerShortcut(item: ImageItemValue, text: string, draggedElementNode: HTMLElement, event: PointerEvent) {
const draggedElementShortcut: any = DomDocumentHelper.createElement("div");
if(!draggedElementShortcut) return;
Expand Down

0 comments on commit dcd6121

Please sign in to comment.