Skip to content

Virtual whiteboard for sketching hand-drawn like diagrams

fix: #8575 , Flowchart clones the current arrowhead (#8581)

Ashwin Temkar8f20b29b7312
diff --git a/packages/excalidraw/element/flowchart.ts b/packages/excalidraw/element/flowchart.ts
index 8df7543b55..ebba11d83b 100644
--- a/packages/excalidraw/element/flowchart.ts
+++ b/packages/excalidraw/element/flowchart.ts
@@ -416,11 +416,11 @@ const createBindingArrow = (
type: "arrow",
x: startX,
y: startY,
- startArrowhead: appState.currentItemStartArrowhead,
+ startArrowhead: null,
endArrowhead: appState.currentItemEndArrowhead,
- strokeColor: appState.currentItemStrokeColor,
- strokeStyle: appState.currentItemStrokeStyle,
- strokeWidth: appState.currentItemStrokeWidth,
+ strokeColor: startBindingElement.strokeColor,
+ strokeStyle: startBindingElement.strokeStyle,
+ strokeWidth: startBindingElement.strokeWidth,
points: [pointFrom(0, 0), pointFrom(endX, endY)],
elbowed: true,
});