[autofix.ci] apply automated fixes
This commit is contained in:
parent
87cf28e158
commit
6def02d3d1
1 changed files with 7 additions and 2 deletions
|
|
@ -228,8 +228,13 @@ export default function Page({
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleCopy(e: KeyboardEvent) {
|
function handleCopy(e: KeyboardEvent) {
|
||||||
const multipleSelection = lastSelection?.nodes ? lastSelection?.nodes.length > 0 : false;
|
const multipleSelection = lastSelection?.nodes
|
||||||
if (!isWrappedWithClass(e, "nocopy") && (isWrappedWithClass(e, "react-flow__node") || multipleSelection)) {
|
? lastSelection?.nodes.length > 0
|
||||||
|
: false;
|
||||||
|
if (
|
||||||
|
!isWrappedWithClass(e, "nocopy") &&
|
||||||
|
(isWrappedWithClass(e, "react-flow__node") || multipleSelection)
|
||||||
|
) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
(e as unknown as Event).stopImmediatePropagation();
|
(e as unknown as Event).stopImmediatePropagation();
|
||||||
if (window.getSelection()?.toString().length === 0 && lastSelection) {
|
if (window.getSelection()?.toString().length === 0 && lastSelection) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue