Skip to content

Add a blocklyNotDeletable CSS class to the block's root SVG #8265

@BeksOmega

Description

@BeksOmega

To Fix

In the BlockSvg class, override the setDeletable method to call dom.addClass on the this.svgGroup_ to add a blocklyNotDeletable class when the block is not deletable, or dom.removeClass to remove the class when the block is deletable.

The PR to fix this should be made against the rc/v12.0.0 branch.

To work on this issue, please comment below asking to be assigned.

Metadata

Metadata

Assignees

Labels

help wantedExternal contributions actively solicitedissue: feature requestDescribes a new feature and why it should be addedsize: smallBugs that can be picked up and completed in 1-3 days

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions