fix: CTRL/CMD & arrow point drag unbinds both sides (#6459) (#7877)

This commit is contained in:
Márk Tolmács 2024-04-23 00:01:05 +02:00 committed by GitHub
parent c851aaaf7b
commit a04676d423
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 51 additions and 2 deletions

View file

@ -293,7 +293,16 @@ export const unbindLinearElements = (
): void => {
elements.forEach((element) => {
if (isBindingElement(element)) {
bindOrUnbindLinearElement(element, null, null, elementsMap);
if (element.startBinding !== null && element.endBinding !== null) {
bindOrUnbindLinearElement(element, null, null, elementsMap);
} else {
bindOrUnbindLinearElement(
element,
element.startBinding ? "keep" : null,
element.endBinding ? "keep" : null,
elementsMap,
);
}
}
});
};