Skip to main content
New Voice
September 2, 2024
Question

Bundle.js Can I remove the listeners added into the bundle.js in the "on" method?

  • September 2, 2024
  • 1 reply
  • 143 views

Hey there, currently I’m integrating the bundle.js to my application to sign an agreement. I’m using a dialog to present this document, this dialog can be closed or opened (everytime that I open this dialog I’m loading again the DocuSign client and requesting the document url to load the embed view),

I was looking for a way to clean the event listeners of the signing but I can’t find any information about it. 

I’m using React, there’s any way to remove the listeners associated when unmount the docusign embed document?

1 reply

Hengfeng Ge
Hero
Hero
September 3, 2024

as you see the code, the off function is empty, so the events can’t remove in this instance.

we also create case with support team. and they reply:

You shouldn't re-use the DocuSign focused view instance, you should create a new instance for each time you require, this ensures the instance events are isolated. Changing this implementation would resolve your issue,

 

FreeLink/甫连信息
🌍 DocuSign Partner | Partner Profile
🏆 2024 APAC Reseller Growth Partner of the Year
🔧 First globally to pass DocuSign eSignature Technical Consultant certification
🚀 Expertise in DocuSign integrations with in-house systems for leading enterprises across various industries.

Feel free to reach out for collaboration opportunities.

Welcome to the DocuSign Community! Your feedback is highly valued. If you find my response helpful, please give it a "Like" and consider marking it as the "Best Answer" to assist others with similar issues.