mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
[FIX]: copy pasted SVG or PNG cannot be undone
This commit is contained in:
parent
47ee8a0094
commit
d430c12de6
1 changed files with 5 additions and 0 deletions
|
@ -2979,6 +2979,9 @@ class App extends React.Component<AppProps, AppState> {
|
|||
const imageElement = this.createImageElement({ sceneX, sceneY });
|
||||
this.insertImageElement(imageElement, file);
|
||||
this.initializeImageDimensions(imageElement);
|
||||
|
||||
this.store.shouldCaptureIncrement();
|
||||
|
||||
this.setState({
|
||||
selectedElementIds: makeNextSelectedElementIds(
|
||||
{
|
||||
|
@ -2988,6 +2991,8 @@ class App extends React.Component<AppProps, AppState> {
|
|||
),
|
||||
});
|
||||
|
||||
this.actionManager.executeAction(actionFinalize);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue