docusign-esign-java-client icon indicating copy to clipboard operation
docusign-esign-java-client copied to clipboard

Docusign Focused is rendering an invisible iframe which makes complete app unusable

Open felixhagspiel opened this issue 3 months ago • 20 comments

hey all,

This is more related to the docusign focused view javascript bundle, but I havent found a dedicated repository for that.

Reproduction:

  1. Create an envelope with just one viewer, no signatures
  2. Use that URL and send it to the docusign javascript SDK
script.onload = () => {
        try {
          window.DocuSign.loadDocuSign(
            process.env.NEXT_PUBLIC_DOCUSIGN_INTEGRATION_KEY
          )
            .then((docusign: any) => {
              const signing = docusign.signing({
                url,
                displayFormat: 'focused',
              });
              signing.on('sessionEnd', (event: IDocusignEvent) => {
                if (
                  (event.sessionEndType === 'signing_complete' ||
                    event.sessionEndType === 'viewing_complete') &&
                  typeof onSigningComplete === 'function'
                ) {
                  onSigningComplete();
                }
              });
              signing.mount('#docusign'); // id of the div to render
            })
            .catch((err: any) => {...})
  1. In the loaded iframe, click on "Agree"
  2. Docusign SDK renders an iframe that is visually hidden, but overlaps the whole page, and nothing can be clicked. When I make the iframe visible via the devtools, I see this message:

image

  1. However, the envelope is successfully submitted, which is especially bad, because it behaves like the user has agreed to the documents although he has not seen them. It just happened that the docs have been agreed on without clicking on the "Agree" button.

Latest Chrome Browser on Mac OS Sonoma 14.5

felixhagspiel avatar Jun 04 '24 14:06 felixhagspiel