fix: New arrow never binds inside

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
This commit is contained in:
Mark Tolmacs
2025-09-03 21:34:22 +02:00
parent f8b8c0e95c
commit 5a62499e95

View File

@@ -982,9 +982,10 @@ class App extends React.Component<AppProps, AppState> {
// Once the start is set to inside binding, it remains so
const arrowStartIsInside =
this.state.selectedLinearElement.pointerDownState
!this.state.newElement &&
(this.state.selectedLinearElement.pointerDownState
.arrowStartIsInside ||
arrow.startBinding?.elementId === hoveredElement.id;
arrow.startBinding?.elementId === hoveredElement.id);
// Change the global binding mode
flushSync(() => {