Update App.tsx
do not delete last element if draggingElement is type selection
This commit is contained in:
parent
4765f5536e
commit
452cceae40
|
@ -6400,9 +6400,11 @@ class App extends React.Component<AppProps, AppState> {
|
|||
isInvisiblySmallElement(draggingElement)
|
||||
) {
|
||||
// remove invisible element which was added in onPointerDown
|
||||
if (draggingElement.type !== "selection") {
|
||||
this.scene.replaceAllElements(
|
||||
this.scene.getElementsIncludingDeleted().slice(0, -1),
|
||||
);
|
||||
}
|
||||
this.setState({
|
||||
draggingElement: null,
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue