parent
b6c30c0550
commit
4c1bf07863
@ -450,10 +450,13 @@ class App extends React.Component<{}, AppState> {
|
|||||||
return isSelected;
|
return isSelected;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// deselect everything except target element to-be-selected
|
||||||
|
elements.forEach(element => {
|
||||||
|
if (element === selectedElement) return;
|
||||||
|
element.isSelected = false;
|
||||||
|
});
|
||||||
if (selectedElement) {
|
if (selectedElement) {
|
||||||
this.setState({ draggingElement: selectedElement });
|
this.setState({ draggingElement: selectedElement });
|
||||||
} else {
|
|
||||||
clearSelection();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
isDraggingElements = elements.some(
|
isDraggingElements = elements.some(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user