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

Invisible toolbox still reports delete area #4811

Closed
alschmiedt opened this issue May 6, 2021 · 0 comments
Closed

Invisible toolbox still reports delete area #4811

alschmiedt opened this issue May 6, 2021 · 0 comments
Assignees
Labels
component: toolbox/flyout issue: bug Describes why the code or behaviour is wrong

Comments

@alschmiedt
Copy link
Contributor

alschmiedt commented May 6, 2021

Describe the bug
When a user sets the toolbox to be not visible the delete area still reports as if the toolbox is there.

To Reproduce

Steps to reproduce the behavior:

  1. Go to the playground
  2. Drag a block on to the workspace
  3. Run Blockly.getMainWorkspace().getToolbox().setVisible(false)
  4. Drag the block on the workspace to where the toolbox used to be.
  5. Notice how the block is deleted.

Expected behavior
There should not be a delete area where the toolbox used to be.

Screenshots

Stack Traces

Replace with error stack trace.

Additional context
Code sandbox with a temporary fix: https://codesandbox.io/s/relaxed-darkness-rnmy3?file=/src/CustomToolbox.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: toolbox/flyout issue: bug Describes why the code or behaviour is wrong
Projects
None yet
Development

No branches or pull requests

2 participants