diff --git a/src/frontend/src/CustomNodes/GenericNode/index.tsx b/src/frontend/src/CustomNodes/GenericNode/index.tsx index bc0ff0fd8..600f20d1f 100644 --- a/src/frontend/src/CustomNodes/GenericNode/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/index.tsx @@ -27,7 +27,13 @@ import { validationStatusType } from "../../types/components"; import { NodeDataType } from "../../types/flow"; import { handleKeyDown, scapedJSONStringfy } from "../../utils/reactflowUtils"; import { nodeColors, nodeIconsLucide } from "../../utils/styleUtils"; -import { classNames, cn, getFieldTitle, sortFields } from "../../utils/utils"; +import { + classNames, + cn, + getFieldTitle, + isWrappedWithClass, + sortFields, +} from "../../utils/utils"; import ParameterComponent from "./components/parameterComponent"; export default function GenericNode({ @@ -387,14 +393,17 @@ export default function GenericNode({ isOutdated, selected, openWDoubleCLick, - setOpenWDoubleCLick + setOpenWDoubleCLick, ]); return ( <> {memoizedNodeToolbarComponent}
setOpenWDoubleCLick(true)} + onDoubleClick={(event) => { + if (!isWrappedWithClass(event, "nodoubleclick")) + setOpenWDoubleCLick(true); + }} className={getNodeBorderClassName( selected, showNode, @@ -467,7 +476,7 @@ export default function GenericNode({ event.preventDefault(); }} data-testid={"title-" + data.node?.display_name} - className="generic-node-tooltip-div cursor-text text-primary" + className="nodoubleclick generic-node-tooltip-div cursor-text text-primary" > {data.node?.display_name}
@@ -720,7 +729,7 @@ export default function GenericNode({ ) : (