Fix : call selectedChanged notification with empty selected elems array when clearSelectionMethod is called

This commit is contained in:
Cédric Godefroy
2021-12-06 15:31:41 +01:00
parent a529258774
commit 26c45f6d4d

View File

@@ -51,7 +51,7 @@ export const clearSelectionMethod = function (noCall) {
svgCanvas.setEmptySelectedElements();
if (!noCall) {
svgCanvas.call("selected", selectedElements);
svgCanvas.call("selected", selectionContext_.getSelectedElements());
}
};