This commit is contained in:
David Luzar 2021-03-17 14:43:58 +01:00 committed by GitHub
parent 70c36e196c
commit c1379c3c10
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 9 deletions

View file

@ -1047,13 +1047,6 @@ class App extends React.Component<ExcalidrawProps, AppState> {
});
private onCopy = withBatchedUpdates((event: ClipboardEvent) => {
const activeSelection = document.getSelection();
if (
activeSelection?.anchorNode &&
!this.excalidrawContainerRef.current!.contains(activeSelection.anchorNode)
) {
return;
}
if (isWritableElement(event.target)) {
return;
}