fix(selection): unset selection when shift pressed #641

This commit is contained in:
moklick
2020-11-05 14:14:10 +01:00
parent 40ef6e076e
commit 8cdd9fd800
+2 -2
View File
@@ -310,9 +310,9 @@ export const storeModel: StoreModel = {
}),
unsetUserSelection: action((state) => {
const selectedNodes = state.selectedElements?.filter(isNode);
const selectedNodes = state.selectedElements?.filter((node) => isNode(node) && node.__rf) as Node[];
if (!selectedNodes) {
if (!selectedNodes || selectedNodes.length === 0) {
state.selectionActive = false;
state.userSelectionRect.draw = false;
state.nodesSelectionActive = false;