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
|
// 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);
|
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);
|
const element = this.scene.getElement(linearElementEditor.elementId);
|
||||||
if (isBindingElement(element)) {
|
if (isBindingElement(element)) {
|
||||||
this.actionManager.executeAction(actionFinalize);
|
this.actionManager.executeAction(actionFinalize);
|
||||||
// bindOrUnbindLinearElement(
|
bindOrUnbindLinearElement(
|
||||||
// element,
|
element,
|
||||||
// startBindingElement,
|
startBindingElement,
|
||||||
// endBindingElement,
|
endBindingElement,
|
||||||
// this.scene,
|
this.scene,
|
||||||
// );
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (linearElementEditor !== this.state.selectedLinearElement) {
|
if (linearElementEditor !== this.state.selectedLinearElement) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue