Skip to content

Commit 094d847

Browse files
committed
fix
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 74b88f5 commit 094d847

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

js/piemenus.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3499,7 +3499,6 @@ const piemenuBlockContext = (block) => {
34993499

35003500
wheel.navItems[2].navigateFunction = () => {
35013501
that.blocks.activeBlock = blockBlock;
3502-
that.blocks.extract();
35033502
that.blocks.sendStackToTrash(that.blocks.blockList[blockBlock]);
35043503
docById("contextWheelDiv").style.display = "none";
35053504
// prompting a notification on deleting any block

0 commit comments

Comments
 (0)