This commit is contained in:
Igor Berlenko 2025-04-23 07:05:28 +00:00 committed by GitHub
commit 94296c03f8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3106,7 +3106,7 @@ class App extends React.Component<AppProps, AppState> {
this.setState({ errorMessage: t("errors.imageToolNotSupported") }); this.setState({ errorMessage: t("errors.imageToolNotSupported") });
return; return;
} }
for (const file of event.clipboardData?.files ?? []) {
const imageElement = this.createImageElement({ sceneX, sceneY }); const imageElement = this.createImageElement({ sceneX, sceneY });
this.insertImageElement(imageElement, file); this.insertImageElement(imageElement, file);
this.initializeImageDimensions(imageElement); this.initializeImageDimensions(imageElement);
@ -3118,6 +3118,7 @@ class App extends React.Component<AppProps, AppState> {
this.state, this.state,
), ),
}); });
}
return; return;
} }