switch to default selection tool after pasting

This commit is contained in:
Ryan Di
2025-07-23 18:39:46 +10:00
parent 691ece340f
commit 4053ced148

View File

@ -3203,7 +3203,7 @@ class App extends React.Component<AppProps, AppState> {
} }
this.addTextFromPaste(data.text, isPlainPaste); this.addTextFromPaste(data.text, isPlainPaste);
} }
this.setActiveTool({ type: "selection" }); this.setActiveTool({ type: this.defaultSelectionTool }, true);
event?.preventDefault(); event?.preventDefault();
}, },
); );
@ -3347,7 +3347,7 @@ class App extends React.Component<AppProps, AppState> {
} }
}, },
); );
this.setActiveTool({ type: "selection" }); this.setActiveTool({ type: this.defaultSelectionTool }, true);
if (opts.fitToContent) { if (opts.fitToContent) {
this.scrollToContent(duplicatedElements, { this.scrollToContent(duplicatedElements, {