Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleting block throws error on small screens #3393

Closed
NeilFraser opened this issue Nov 4, 2019 · 1 comment
Closed

Deleting block throws error on small screens #3393

NeilFraser opened this issue Nov 4, 2019 · 1 comment
Labels
issue: bug Describes why the code or behaviour is wrong

Comments

@NeilFraser
Copy link
Member

  • Edit playground's options to simply be:
      {
        trashcan: true,
        toolbox: toolbox
      }
  • Open playground in simple mode.
  • Open console so that the screen is small.
  • Create a stack of two if-else blocks.
  • Drag a block from the toolbox to the trash.

Screen Shot 2019-11-04 at 11 59 50

In the console is this error:

inject.js:306 Uncaught TypeError: Cannot read property 'getRootBlock' of null
    at bumpObjects (inject.js:306)
    at Blockly.WorkspaceSvg.Blockly.Workspace.fireChangeListener (workspace.js:783)
    at Blockly.Events.fireNow_ (events.js:203)

Affects master and develop. Found on Blockly Games.

@NeilFraser NeilFraser added issue: bug Describes why the code or behaviour is wrong issue: triage Issues awaiting triage by a Blockly team member labels Nov 4, 2019
@NeilFraser
Copy link
Member Author

Duplicate of #2929

@NeilFraser NeilFraser marked this as a duplicate of #2929 Nov 4, 2019
@moniika moniika removed the issue: triage Issues awaiting triage by a Blockly team member label Jul 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue: bug Describes why the code or behaviour is wrong
Projects
None yet
Development

No branches or pull requests

2 participants