microsoft / pxt-microbit

A Blocks / JavaScript code editor for the micro:bit built on Microsoft MakeCode
https://makecode.microbit.org
Other
726 stars 638 forks source link

Didn't undo the action when click Undo button after adding comment in workspace #5542

Open v-katherine opened 8 months ago

v-katherine commented 8 months ago

Describe the bug Didn't undo the action when click Undo button after adding comment in workspace

Steps to reproduce the behavior 1.Navigate to https://makecode.microbit.org/beta. 2.Create/Open a project. 3.Add Comment in workspace via right-click->Add Comment. 4.Undo and observe.

Actual behavior: Didn't undo the action, the added comment moved to the left-upper conner in the workspace.

Expected behavior: Undo the added comment action, the comment will be deleted in the workspace.

Screen Recording: AddComment

Additional context: 1.OS: Windows 11 2.makecode.microbit,org version: 7.0.4 3.Microsoft MakeCode version: 10.0.11

v-katherine commented 8 months ago

Please note, this bug also reproduced in Arcade beta version and Minecraft beta version.