agilgur5 / react-signature-canvas

A React wrapper component around signature_pad (in < 150 LoC). Unopinionated and heavily updated fork of react-signature-pad
https://agilgur5.github.io/react-signature-canvas/
Other
546 stars 119 forks source link

`TypeError: sigCanvas.current.getTrimmedCanvas is not a function` #92

Closed pneha2296 closed 2 years ago

pneha2296 commented 2 years ago
const sigCanvas = useRef({});
const onClickSignatureUpload = (url, id) => {
    console.log("signature Upload start");
    fetch(url)
      .then(res => res.blob())
      .then(blob => {
        const file = new File([blob], "signature.png", { type: "image/png" });
        const body = {
          fileName: file?.name,
          mimeType: file?.type,
          directory: "document",
        };
        dispatch(createSignedUrl(body))
          .then((response) => {
            setValue(id, response?.s3Key);
            dispatch(uploadFile(response?.signedUrl, file));
          })
          .catch((error) => {
            console.log(error);
          })
          .finally(() => {
            const fileType = {
              title: file?.name,
              type: file?.type,
              size: file?.size,
              percentage: 100,
            };
            uploadedFiles.push(fileType);
            setFileUploadDeatisl(uploadedFiles);
          });
      })
  }

image

91

Here I attach reference things that are missing in issue no #91 please resolve before close

agilgur5 commented 2 years ago

Please don't make duplicate issues for no reason. You can leave comments on closed issues. If you do not know how to use GitHub, please read GitHub's docs and familiarize yourself before posting issues and asking for other people's time.

If you create another duplicate issue, you will be blocked for spamming.

please resolve before close

Please be respectful to maintainers who are volunteering their free time to help you. I am not paid to do this. If you are not respectful, spamming, or otherwise abusive, you will be blocked.

Issues are also not a support forum, they are for reporting bugs, suggesting features, etc. StackOverflow is a support forum and you are welcome to use that for help with coding issues.

Please read my response in full. That includes clicking and reading all links in full as well. If you are not willing to spend your time doing that, then please do not ask others to spend time figuring out your issues -- that is not respectful of their time.

You did not provide what I asked for. I gave 3 options and this is not one of them. This is also, again, not a minimal repro, not a full component, has various unrelated pieces, and is not reproducible. I once again had to fix the formatting here too...

As I said in #91, this seems to be an issue with your usage of React, and not a react-signature-canvas issue. You did not provide any evidence here to suggest otherwise.

pneha2296 commented 2 years ago

I face issue and I raised you don't event listen and asking me like this that you will going to blocked me you don't want to solve tell me simple that you are not providing support before this I raised issue and they solved that's why I am doing.

and reason behind recreating issue is just that I didn't get solution of problem. I am sorry to be wasting your time.