Clear single item from undo manager #3897
mihir-khandekar
started this conversation in
Ideas
Replies: 1 comment 5 replies
-
I think you should investigate that first. When you click on the non-selectable component it tries to find the closest selectable one, so I guess you're just selecting the parent component. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello @artf ,
use case: We have a custom set of buttons to allow someone to undo/redo the last change. Changes like selecting a specific type of element from being selected are not expected to be tracked. Although, these components are marked as
data-gjs-selectable="false"
the editor still fires the component selected event and the undo manager adds this selection to its stack.I would like to make a request where in we can remove a single tracked change from the undo manager using a method like
UndoManager.clear(changeId)
.Please let me know if this can be done or if there are any work arounds.
Beta Was this translation helpful? Give feedback.
All reactions