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

docs: Add redo functionality in demo site for signature path restore when undo path. #763

Merged
merged 1 commit into from
Apr 3, 2024

Conversation

mdabbas-cse
Copy link
Contributor

No description provided.

@UziTech
Copy link
Collaborator

UziTech commented Mar 21, 2024

seems like undoData should be cleared if a mark is made. If the user makes a few marks, then clicks undo, then makes another mark, the redo button should not do anything.

You should be able to use something like:

signaturePad.addEventListener("endStroke", () => {
  undoData = [];
});

@UziTech UziTech changed the title feat: Add redo functionality in demo site for signature path restore when undo path. docs: Add redo functionality in demo site for signature path restore when undo path. Apr 3, 2024
@UziTech UziTech merged commit 1440699 into szimek:master Apr 3, 2024
5 checks passed
Copy link

github-actions bot commented Apr 5, 2024

🎉 This PR is included in version 5.0.0-beta.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Copy link

github-actions bot commented May 3, 2024

🎉 This PR is included in version 5.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants