#104 clearselection undefind issue fixed

This commit is contained in:
Agriya Dev5
2021-05-25 16:07:00 +05:30
parent 6015fe9602
commit 9e8cce86f9

View File

@@ -261,7 +261,7 @@ export const cloneSelectedElements = function (x, y) {
}
// use slice to quickly get the subset of elements we need
const copiedElements = selectedElements.slice(0, i);
this.clearSelection(true);
elementContext_.clearSelection(true);
// note that we loop in the reverse way because of the way elements are added
// to the selectedElements array (top-first)
const drawing = elementContext_.getDrawing();