fix: Do not rebind undragged elbow arrow endpoint (#9191)

This commit is contained in:
Márk Tolmács 2025-03-10 16:25:33 +01:00 committed by GitHub
parent 4ec812bc18
commit d587b8a3de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 90 additions and 60 deletions

View file

@ -10,7 +10,6 @@ import {
import { bindLinearElement } from "./binding";
import { LinearElementEditor } from "./linearElementEditor";
import { newArrowElement, newElement } from "./newElement";
import type { SceneElementsMap } from "./types";
import {
type ElementsMap,
type ExcalidrawBindableElement,
@ -472,7 +471,7 @@ const createBindingArrow = (
const update = updateElbowArrowPoints(
bindingArrow,
toBrandedType<SceneElementsMap>(
toBrandedType<NonDeletedSceneElementsMap>(
new Map([
...elementsMap.entries(),
[startBindingElement.id, startBindingElement],