From da8e97ad14d87a759173a401d12a908f1beb4ac2 Mon Sep 17 00:00:00 2001 From: Aakansha Doshi Date: Tue, 23 May 2023 16:55:41 +0530 Subject: [PATCH] preserve bindings for labelled arrows --- src/element/newElement.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/element/newElement.ts b/src/element/newElement.ts index 27257088ba..e1afc0b560 100644 --- a/src/element/newElement.ts +++ b/src/element/newElement.ts @@ -683,6 +683,12 @@ export const convertToExcalidrawElements = ( if (container.type === "arrow") { //@ts-ignore const { start, end } = element; + mutateElement(container, { + //@ts-ignore + startBinding: element?.startBinding || null, + //@ts-ignore + endBinding: element.endBinding || null, + }); if (start) { const width = start?.width ?? 100; const height = start?.height ?? 100;