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

setImage() does not set the content for the signaturePad #482

Open
patrickengels1969 opened this issue Apr 4, 2023 · 1 comment
Open

Comments

@patrickengels1969
Copy link

I want to restore an image (URI) into the signature Pad.

First I store the image into a string by pressing a button:
btnStore.addClickListener(e->{
if (signature != null && !signature.isEmpty())
{
img = signature.getImageURI();
_log.debug("Storing: "+img.length());
}
});

Next I clear the signature pad and then I want to set the image Uri back into the SignaturePad by pressing the restore button:
btnRestore.addClickListener(e->{
if (signature != null)
{
if (!FMZStringUtils.isEmptyStr(img))
{
_log.debug("Restoring: "+img.length());
signature.setImage(img);
}
}
});

The signature does not show the content.

I would expect the content to be restored!

This is happening using Vaadin 23.3.8 running on my dev machine (Windows 10) using tomcat as server.
I'm using version 3.1.0

de.f0rce.signaturepad signature-widget 3.1.0
@martinisraelsen
Copy link

I’m experiencing the same issue.

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