Pretty easy to reproduce. Have a standard comment in javascript in a custom grid popup editor like this:
<script>
function() {
var x = 0;
doSomething();
}
Your grid will "minify" this into a single line when including the popup code as an editor template. This will break everything because javascript will treat everything after the double-slashes as a comment, which means the entire popup is now gone.
This has been an ongoing issue for years and we expected that your code would someday be smart enough to strip comments when minifying the popup (which minifying is supposed to do anyway) or perhaps convert them so they open and close.
Note: I realize it's not really a "minify" since it keeps the same variables but it's about as well as i can describe what's going on.
The requested solution is simply to strip comments out when pulling in the custom popup editor, as they are pretty much useless when the entire popup is in a single line anyway.