Skip to content

Commit 28f2c01

Browse files
committed
#Fix (Widget block gets disable after Restore #4670)
The pie menu's "Delete" button was calling an extra function, that.blocks.extract(), before calling that.blocks.sendStackToTrash(). The extract() function (which is meant to pull a block from the middle of a stack) was breaking the widget's internal state before it was even sent to the trash. The drag-and-drop delete function only calls sendStackToTrash(), which is why it worked correctly.
1 parent 055d3e1 commit 28f2c01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/piemenus.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3502,7 +3502,7 @@ const piemenuBlockContext = (block) => {
35023502

35033503
wheel.navItems[2].navigateFunction = () => {
35043504
that.blocks.activeBlock = blockBlock;
3505-
that.blocks.extract();
3505+
35063506
that.blocks.sendStackToTrash(that.blocks.blockList[blockBlock]);
35073507
docById("contextWheelDiv").style.display = "none";
35083508
// prompting a notification on deleting any block

0 commit comments

Comments
 (0)