[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) {
|
||||
const multipleSelection = lastSelection?.nodes ? lastSelection?.nodes.length > 0 : false;
|
||||
if (!isWrappedWithClass(e, "nocopy") && (isWrappedWithClass(e, "react-flow__node") || multipleSelection)) {
|
||||
const multipleSelection = lastSelection?.nodes
|
||||
? lastSelection?.nodes.length > 0
|
||||
: false;
|
||||
if (
|
||||
!isWrappedWithClass(e, "nocopy") &&
|
||||
(isWrappedWithClass(e, "react-flow__node") || multipleSelection)
|
||||
) {
|
||||
e.preventDefault();
|
||||
(e as unknown as Event).stopImmediatePropagation();
|
||||
if (window.getSelection()?.toString().length === 0 && lastSelection) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue