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

Undo, redo not working #728

Open
phamvanhieu3012 opened this issue Feb 13, 2025 · 2 comments
Open

Undo, redo not working #728

phamvanhieu3012 opened this issue Feb 13, 2025 · 2 comments

Comments

@phamvanhieu3012
Copy link

Discussed in #727

Originally posted by phamvanhieu3012 February 11, 2025
Undo, redo not working properly. Must click several times to do,

@realalex
Copy link

Then it's not implemented properly. My implementation of undo/redo work as expected:


            <BootstrapButton
              variant='default'
              size='sm'
              disabled={!canUndo}
              onClick={() => actions.history.undo()}
            >
              <FontAwesomeIcon className={"mr-2 " + (canUndo ? 'text-primary' : '')} icon={['far', 'rotate-left']} />
              Undo
            </BootstrapButton>

@phamvanhieu3012
Copy link
Author

You can try it on the homepage:
https://craft.js.org/examples/landing

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

2 participants