You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
After adding several else if sections to an if block (at least three), removing them using the - button leaves phantom / orphaned false blocks on the canvas. These can't be interacted with or removed by the user. These also don't appear in the JavaScript.
The following error appears in the developer console:
Uncaught TypeError: Cannot read properties of null (reading 'isShadow')
at ad.setTargetBlock (main.js:7:230288)
at ad.setTargetBlock (main.js:7:230304)
at ad.setStartBlock (main.js:7:230249)
at ad.handleBlockStart (main.js:7:227938)
at ep.onMouseDown_ (main.js:7:433042)
at SVGGElement.o (main.js:7:42156)
The following warning appears in the developer console:
Shadow block of type 'logic_boolean' found at top level. Converting to non-shadow block
Describe the bug
After adding several
else if
sections to anif
block (at least three), removing them using the-
button leaves phantom / orphaned false blocks on the canvas. These can't be interacted with or removed by the user. These also don't appear in the JavaScript.The following error appears in the developer console:
The following warning appears in the developer console:
To Reproduce
Steps to reproduce the behavior:
+
button in theif
block to add anotherelse if
section-
button on the same section just addedfalse
block hidden behind theevery
block and observe the errors in the developer consolePlease see the gif below if these steps to reproduce aren't clear.
Expected behavior
Phantom false blocks should not be left behind in this way.
Screenshots
micro:bit version (please complete the following information):
Not hardware related
Desktop (please complete the following information):
Additional context
None
The text was updated successfully, but these errors were encountered: