mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Restore binding
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
This commit is contained in:
parent
14bd9d3829
commit
be69271fcd
2 changed files with 7 additions and 7 deletions
|
@ -123,7 +123,7 @@ export const actionFinalize = register({
|
|||
}
|
||||
}
|
||||
|
||||
if (isInvisiblySmallElement(element)) {
|
||||
if (element && isInvisiblySmallElement(element)) {
|
||||
// TODO: #7348 in theory this gets recorded by the store, so the invisible elements could be restored by the undo/redo, which might be not what we would want
|
||||
newElements = newElements.filter((el) => el.id !== element.id);
|
||||
}
|
||||
|
|
|
@ -9023,12 +9023,12 @@ class App extends React.Component<AppProps, AppState> {
|
|||
const element = this.scene.getElement(linearElementEditor.elementId);
|
||||
if (isBindingElement(element)) {
|
||||
this.actionManager.executeAction(actionFinalize);
|
||||
// bindOrUnbindLinearElement(
|
||||
// element,
|
||||
// startBindingElement,
|
||||
// endBindingElement,
|
||||
// this.scene,
|
||||
// );
|
||||
bindOrUnbindLinearElement(
|
||||
element,
|
||||
startBindingElement,
|
||||
endBindingElement,
|
||||
this.scene,
|
||||
);
|
||||
}
|
||||
|
||||
if (linearElementEditor !== this.state.selectedLinearElement) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue