[FIX]: copy pasted SVG or PNG cannot be undone

This commit is contained in:
Vedang 2024-10-02 18:28:28 +05:30
parent 47ee8a0094
commit d430c12de6

View file

@ -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;
}