fix: keep binding for attached arrows after changing text (#3754)

Co-authored-by: David Luzar <luzar.david@gmail.com>
This commit is contained in:
connorhanafee 2021-06-21 08:31:49 -04:00 committed by GitHub
parent 5cd921549a
commit 969d3c694a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 118 additions and 6 deletions

View file

@ -1747,7 +1747,8 @@ class App extends React.Component<AppProps, AppState> {
[element.id]: true,
},
}));
} else {
}
if (isDeleted) {
fixBindingsAfterDeletion(this.scene.getElements(), [element]);
}
if (!isDeleted || isExistingElement) {