@@ -4,15 +4,16 @@ import { useStore as getStoreStateFlowV12 } from "@xyflow/react";
44import Color from "color" ;
55import { NumberSize , Resizable , ResizableProps , ResizeCallback } from "re-resizable" ;
66
7+ import { preventReactFlowDragClass } from "../../../cmem/react-flow/ReactFlow/constants" ;
78import { intentClassName , IntentTypes } from "../../../common/Intent" ;
89import { Depiction , DepictionProps } from "../../../components" ;
910import { ValidIconName } from "../../../components/Icon/canonicalIconNames" ;
1011import Icon from "../../../components/Icon/Icon" ;
1112import OverflowText from "../../../components/Typography/OverflowText" ;
1213import { CLASSPREFIX as eccgui } from "../../../configuration/constants" ;
14+ import { HandleDefault , HandleDefaultProps } from "../handles/HandleDefault" ;
1315import { ReacFlowVersionSupportProps , ReactFlowVersions , useReactFlowVersion } from "../versionsupport" ;
1416
15- import { HandleDefault , HandleDefaultProps } from "../handles/HandleDefault" ;
1617import { NodeContentExtensionProps } from "./NodeContentExtension" ;
1718import { NodeDefaultProps } from "./NodeDefault" ;
1819import { NodeHighlightColor } from "./sharedTypes" ;
@@ -649,7 +650,7 @@ export function NodeContent<CONTENT_PROPS = React.HTMLAttributes<HTMLElement>>({
649650 ) }
650651 </ div >
651652 { ( menuButtons || ( showExecutionButtons && executionButtons ) ) && (
652- < div className = { `${ eccgui } -graphviz__node__header-menu nodrag ` } >
653+ < div className = { `${ eccgui } -graphviz__node__header-menu ${ preventReactFlowDragClass } ` } >
653654 { showExecutionButtons && typeof executionButtons === "function"
654655 ? executionButtons ( adjustedContentProps , setAdjustedContentProps )
655656 : null }
@@ -782,7 +783,7 @@ export function NodeContent<CONTENT_PROPS = React.HTMLAttributes<HTMLElement>>({
782783 ( resizeDirections ! . right ? ` ${ eccgui } -graphviz__node__resizer--right` : "" ) +
783784 ( resizeDirections ! . bottom ? ` ${ eccgui } -graphviz__node__resizer--bottom` : "" )
784785 }
785- handleWrapperClass = { `${ eccgui } -graphviz__node__resizer--cursorhandles` + " nodrag" }
786+ handleWrapperClass = { `${ eccgui } -graphviz__node__resizer--cursorhandles ${ preventReactFlowDragClass } ` }
786787 size = { resizableSize }
787788 maxHeight = { resizeMaxDimensions ?. height ?? undefined }
788789 maxWidth = { resizeMaxDimensions ?. width ?? undefined }
0 commit comments