Skip to content

Commit cf08d32

Browse files
authored
Merge pull request #7010 from StephenMcConnel/BL-14638-DuplicateDraggableTargets
Duplicate draggable target elements properly (BL-14638) (#7010)
2 parents 424cbc6 + eb4e239 commit cf08d32

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/BloomBrowserUI/bookEdit/js/CanvasElementContextControls.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,10 @@ const CanvasElementContextControls: React.FunctionComponent<{
187187
menuOptions.unshift({
188188
l10nId: "EditTab.Toolbox.ComicTool.Options.Duplicate",
189189
english: "Duplicate",
190-
onClick: theOneCanvasElementManager?.duplicateCanvasElement,
190+
onClick: () => {
191+
if (!props.canvasElement) return;
192+
makeDuplicateOfDragBubble();
193+
},
191194
icon: <DuplicateIcon css={getMenuIconCss()} />
192195
});
193196
}

0 commit comments

Comments
 (0)