Skip to content

Conversation

@kaiju-no-9
Copy link

The pie menu's "Delete" button was calling an extra function, that.blocks.extract(), before calling that.blocks.sendStackToTrash().
Screenshot 2025-11-17 at 4 24 33 AM

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.

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.
@github-actions
Copy link
Contributor

✅ All Jest tests passed! This PR is ready to merge.

@kaiju-no-9 kaiju-no-9 changed the title fix fix Widget block gets disable after Restore #4670 Nov 16, 2025
@Commanderk3
Copy link
Member

@kaiju-no-9 I have tested. Seems to be working fine 👍

@suryaanshah
Copy link
Contributor

@Commanderk3 Removing the extract function does appear to fix the widget block issue (as noted in the original issue thread), but it was originally added for a reason. We should understand the implications before removing it outright.

@kaiju-no-9
Copy link
Author

@suryaanshah yes one should look for it if i does cause any issue but this was the only place cause the bug i went through all the code__base and rest all is working fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants