The cause of this issue is style="overflow: hidden;" which is added to the body when the widget button is clicked and the iframe created is not removed when the widget.destroy() function is called, to fix this i replaced
destroy && widget.destroy() with destroy && widget.destroy().then(() => { document.body.style.removeProperty('overflow'); }); in functions/myWidget.js on lines 77 and lines 84
The cause of this issue is style="overflow: hidden;" which is added to the body when the widget button is clicked and the iframe created is not removed when the
widget.destroy()
function is called, to fix this i replaceddestroy && widget.destroy()
withdestroy && widget.destroy().then(() => { document.body.style.removeProperty('overflow'); });
infunctions/myWidget.js
on lines 77 and lines 84