-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Open
Labels
component: connectionissue: bugDescribes why the code or behaviour is wrongDescribes why the code or behaviour is wrong
Milestone
Description
Describe the bug
Detached shadow block in workspace. These blocks cannot be moved, attached, or deleted.
To Reproduce
Steps to reproduce the behavior:
- Add to toolbox:
'blockxml' => '<block type="lists_create_with">
<mutation items="2"></mutation>
<value name="ADD0">
<shadow type="text">
<field name="TEXT">abc</field>
</shadow>
</value>
<value name="ADD1">
<shadow type="text">
<field name="TEXT">def</field>
</shadow>
</value>
</block>',
- Add this
lists_create_withto workspace - Click
gearicon to change mutations - Delete any
iteminlistin mutation popup - Close mutation popup
- See detached shadow block in workspace
- Click at this detached shadow block
- See in console:
Uncaught TypeError: Cannot read property 'isShadow' of null
Expected behavior
For example: these blocks can be moved, attached or removed.
Screenshots
Desktop (please complete the following information):
- OS: Windows 10
- Browser Chrome
- Version 90.0.4430.212
Stack Traces
Uncaught TypeError: Cannot read property 'isShadow' of null
at t.TouchGesture.t.Gesture.setTargetBlock_
at t.TouchGesture.t.Gesture.setTargetBlock_
at t.TouchGesture.t.Gesture.setStartBlock
at t.TouchGesture.t.Gesture.handleBlockStart
at t.BlockSvg.onMouseDown_
at SVGGElement.l
Additional context
blockly@5.20210325.1
blockly@4.20201217.0
blockly@3.20200924.4
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
component: connectionissue: bugDescribes why the code or behaviour is wrongDescribes why the code or behaviour is wrong
