-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Open
Labels
issue: bugDescribes why the code or behaviour is wrongDescribes why the code or behaviour is wrong
Description
Check for duplicates
- I have searched for similar issues before opening a new one.
Description
Child connections automatically detach when a mutation removes the connection. This isn't undoable but should be.
Reproduction steps
- Navigate to https://blockly-demo.appspot.com/static/tests/playground.html
- Drag a
procedures_ifreturnblock to the workspace. - Drag a
procedures_defnoreturnblock to the workspace, separately. - Add a third block and attach it to the return connection of the
procedures_ifreturnblock. - Attach the
procedures_ifreturnas a stack child to theprocedures_defnoreturnblock. This will mutate theprocedures_ifreturnand detach its own child. - Undo dragging the
procedures_ifreturnblock. The block will move, but neither its mutation nor the detached child will get undone.
Stack trace
events_block_move.ts:290 Can't connect to non-existent input: VALUE
run @ events_block_move.ts:290
undo @ workspace.ts:658
callback @ shortcut_items.ts:274
onKeyDown @ shortcut_registry.ts:236
onKeyDown @ inject.ts:309
wrapFunc @ browser_events.ts:65
Screenshots
No response
Browsers
Chrome desktop
Metadata
Metadata
Assignees
Labels
issue: bugDescribes why the code or behaviour is wrongDescribes why the code or behaviour is wrong
Type
Projects
Status
Todo