[Bug]: redo doesn't work correctly #4403
Labels
Category: Open Source
The issue or pull reuqest is related to the open source packages of Tiptap.
Type: Bug
The issue or pullrequest is related to a bug
Which packages did you experience the bug in?
prosemirror-keymap
What Tiptap version are you using?
2.1.7
What’s the bug you are facing?
Upon using extension-history, when the "editor?.can().redo()" is false, I press the Shift-Mod-z. However, undo is triggered instead. Subsequently, when I active Shift-Mod-z again, the redo is called. If I continue to press Shift-Mod-z, undo and redo will be alternately triggered.
a gif from example:
Here is my dependencies:
What browser are you using?
Chrome
Code example
No response
What did you expect to happen?
when the "editor?.can().redo()" is false, I press the Shift-Mod-z, but no action is triggered.
Anything to add? (optional)
No response
Did you update your dependencies?
Are you sponsoring us?
The text was updated successfully, but these errors were encountered: