Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Undo manager start and stop doesnt work as expected #5530

Closed
2 tasks done
Harshsne26 opened this issue Nov 25, 2023 · 0 comments
Closed
2 tasks done

BUG: Undo manager start and stop doesnt work as expected #5530

Harshsne26 opened this issue Nov 25, 2023 · 0 comments

Comments

@Harshsne26
Copy link

GrapesJS version

  • I confirm to use the latest version of GrapesJS

What browser are you using?

Chrome v91

Reproducible demo link

https://codepen.io/dhanadsp1120/pen/ExrRvOB

Describe the bug

How to reproduce the bug?

  1. Disable the undo manager by invoking um.stop().
  2. Make alterations to the content.
  3. Re-enable the undo manager using um.start().

What is the expected behavior?
Upon pressing Ctrl+Z, the system should revert to the state before stopping the undo manager, reflecting only changes made after re-enabling it.

What is the current behavior?
Pressing Ctrl+Z navigates to the preceding step, indicating that all changes are being tracked despite the undo manager being temporarily halted.

undo manger

Code of Conduct

  • I agree to follow this project's Code of Conduct
@artf artf closed this as completed in 6edc196 Nov 29, 2023
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

No branches or pull requests

1 participant