Problem statement
Bug: This behavior means that the user could accidentally delete an undeletable block.
Expected Behavior
When you press ctrl/cmd z to "un-create" an un-deletable block nothing should happen.
Actual Behavior
The block is deleted.
Steps to Reproduce
- Add below code at ~ ln 124 in playground:
var workspaceBlocks = document.getElementById("workspaceBlocks");
Blockly.Xml.domToWorkspace(workspaceBlocks, workspace);
- Add below code at ~ ln 366 in playground:
<xml xmlns="http://www.w3.org/1999/xhtml" id="workspaceBlocks" style="display:none">
<block type="controls_if" deletable="false" id="1" x="12" y="13"></block>
</xml>
- Load the playground & observe how a "controls_if" block appears.
- Press ctrl/cmd z & observe how it is deleted (even though deletable is set to false).
Stack Traces
N/A
Operating System and Browser
I assume this affects all browers.
Additional Information
Problem statement
Bug: This behavior means that the user could accidentally delete an undeletable block.
Expected Behavior
When you press ctrl/cmd z to "un-create" an un-deletable block nothing should happen.
Actual Behavior
The block is deleted.
Steps to Reproduce
Stack Traces
N/A
Operating System and Browser
I assume this affects all browers.
Additional Information