From 8f20b29b7312a6075674177238485e7598bc3276 Mon Sep 17 00:00:00 2001 From: Ashwin Temkar <83207402+rothardo@users.noreply.github.com> Date: Fri, 24 Jan 2025 21:20:07 +0530 Subject: [PATCH] fix: #8575 , Flowchart clones the current arrowhead (#8581) * fix: #8575, Flowchart clones the current arrowhead * fix: #8575, changed stroke color, style and width to startBindingElement --- packages/excalidraw/element/flowchart.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/excalidraw/element/flowchart.ts b/packages/excalidraw/element/flowchart.ts index 8df7543b5..ebba11d83 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, });