Skip to content

Flyout workspace cannot receive first BlockChange event #9486

@alexcui03

Description

@alexcui03

Check for duplicates

  • I have searched for similar issues before opening a new one.

Description

When we change a block in flyout (when autoClose is false), the first change event is not received in listener, while the later change events are received correctly.

I add a logging breakpoint in devtools at Blockly.Workspace.fireChangeListener, it print out the change event correctly, but the listener isn't called.

Reproduction steps

  1. Run Blockly advanced playground, with the following configuration:
  • options > toolbox: simple (I use simple toolbox since it won't auto close and it is visible at first, then i can change the block in the flyout, e.g. inputs)
  • actions > logging > log flyout events: true
  1. Change any fields or inputs.
  2. Check devtool, BlockChange event is not printed.
  3. Do step 2 again.
  4. This time we can see BlockChange in devtool.

Priority

No response

Stack trace

Screenshots

No response

Browsers

Chrome desktop

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue: bugDescribes why the code or behaviour is wrong

    Type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions