Skip to content

When multiple instances of this widget are present, dialogs always appear in the same instance #30

@cbcode1

Description

@cbcode1

Since Blockly's configuration is always global, only the first initialized Block Based Code widget makes changes to its configuration (other instances see that it is already configured and do not change anything). This configuration includes how to handle dialog boxes. Thus, they are always displayed in the same widget. Worse, if this original widget gets deleted, they are not displayed anywhere anymore.

Steps to reproduce:

  1. Create multiple instances of the Block Based Code widget
  2. Try to open a Create Variable dialog in one of the later created widgets
  3. Notice how the dialog opens in the first widget

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions