blockly-samples icon indicating copy to clipboard operation
blockly-samples copied to clipboard

Enable trash on react application dont display trash

Open sginer opened this issue 4 years ago • 2 comments

Category

  • Examples

Component

Blockly workspace

Describe the bug

In the react sample if I enable trash, the trash is not displayed (it is the same with zoom)

This function work fine in Angular

To Reproduce

Download github repo Go to react example update BlocklyComponent.jsx file and add trashcan option like bellow

    this.primaryWorkspace = Blockly.inject(
        this.blocklyDiv.current,
        {
            toolbox: this.toolbox.current,
            trashcan : true,
            ...rest
        },
    );

Strart the example and you can show on workspace that tras is not displayed

Expected behavior

The trash must be displayed when trash is enabled

Screenshots

image

Additional context

sginer avatar Mar 03 '21 08:03 sginer

I am having trouble reproing this. Are you still seeing this issue?

alschmiedt avatar Mar 23 '21 00:03 alschmiedt

yes I have still the problem ! Have you download the react sample, add previous lines ? When you do this you have the trash enabled ?

sginer avatar Mar 23 '21 06:03 sginer

This appears to work fine at present. If you're still experiencing this with the latest version of the example, please feel free to re-open!

gonfunko avatar Apr 14 '23 18:04 gonfunko