Page settings Body End and @portal(bodyEnd)

I noticed that code set to be placed at the body end (i.e just before ) using either the page settings or the @portal(bodyEnd) in a custom element is being placed higher up inside a div or two instead of before the . This may not matter in most cases but is affecting a full screen fixed modal.

Is there a reason for that or will that get fixed?

Hi @vibralogix,

I’ve just tested this here and can’t reproduce. Do you have a sample project you could upload to Elements Cloud showing the issue?

Also, it’s worth double checking your project’s template in the site settings area as this can affect the placement.

Hi @tpbradley

Thanks for taking a look. I just made new project and of course it seems to work exactly as it should. It must be something I have messed up in my project somewhere. There is a lot of stuff in there! I will make some more tests and let you know if I can reproduce it on a simpler project.

Perfect! Just let us know if you’re able to reproduce it.

Cheers

I found the issue. My custom component had <div> in place of </div> which cause that (not surprising!).

Ah hah! That’ll do it! Good find.