I am loading the add user to a group dialog box inside a div, so that user sees it and i can hide some other elements inside it. I am able to load the content but once i click the Share button it goes in infinite loop and doesn't work
here is my code to load
$("#group").load("https://mysite/_layouts/15/aclinv.aspx?IsDlg=1&GroupId=1471" + "#s4-workspace");
This is the error i get when i hit the share button
Uncaught RangeError: Maximum call stack size exceeded at submitHook (eval at (jquery_latest_min.js:2), :1:28) at HTMLFormElement.theForm.submit [as oldSubmit] (eval at (jquery_latest_min.js:2), :1:125) at HTMLFormElement.WebForm_SaveScrollPositionSubmit [as _spOldSubmit] (WebResource.axd?d=-GlMVxtR869ECh-0Ek-ZOrsTn6XaKcG9kmRIQByNw84z9jS9OxDXrxo2v-e1gzEVtMRBAhI9FNk1ZOo1Galk1c40QHTzxQV7ubUzaiuX9SY1&t=637453888754849868:406) at HTMLFormElement.theForm.submit [as oldSubmit] (eval at (jquery_latest_min.js:2), :1:146) at HTMLFormElement.WebForm_SaveScrollPositionSubmit [as _spOldSubmit] (WebResource.axd?d=-GlMVxtR869ECh-0Ek-ZOrsTn6XaKcG9kmRIQByNw84z9jS9OxDXrxo2v-e1gzEVtMRBAhI9FNk1ZOo1Galk1c40QHTzxQV7ubUzaiuX9SY1&t=637453888754849868:406) at HTMLFormElement.theForm.submit [as oldSubmit] (eval at (jquery_latest_min.js:2), :1:146) at HTMLFormElement.WebForm_SaveScrollPositionSubmit [as _spOldSubmit] (WebResource.axd?d=-GlMVxtR869ECh-0Ek-ZOrsTn6XaKcG9kmRIQByNw84z9jS9OxDXrxo2v-e1gzEVtMRBAhI9FNk1ZOo1Galk1c40QHTzxQV7ubUzaiuX9SY1&t=637453888754849868:406) at HTMLFormElement.theForm.submit [as oldSubmit] (eval at (jquery_latest_min.js:2), :1:146) at HTMLFormElement.WebForm_SaveScrollPositionSubmit [as _spOldSubmit] (WebResource.axd?d=-GlMVxtR869ECh-0Ek-ZOrsTn6XaKcG9kmRIQByNw84z9jS9OxDXrxo2v-e1gzEVtMRBAhI9FNk1ZOo1Galk1c40QHTzxQV7ubUzaiuX9SY1&t=637453888754849868:406) at HTMLFormElement.theForm.submit [as oldSubmit] (eval at (jquery_latest_min.js:2), :1:146)