thanks @luka The header was set to a higher z axis, so when I reduced that, the modal covered the header as expected. WRT needing JS to make the modal behave like a modal - that is a bug of the modal element IMO. @Quentin@flo@Joyce Weweb team should consider fixing that modal element so the page behind doesn’t scroll when modal is open…
thanks Luka. I’m still building my app so its not published yet. Two questions about your reply:
Where exactly do I add this code?
Do I just add wwLib.getFrontDocument().body.style.overflow = “hidden” when opening and wwLib.getFrontDocument().body.style.overflow = “auto” when closing?
Thanks so much for your help Luka. That answers question 1. Sorry for the noob question, but I don’t know JS. If I want to remove the IF statement temporarily to test in the editor, what would the correct JS be?
@luka I am noticing that my sticky top nav bar is no longer sticky after opening and closing a modal that has this custom JS applied. Any way to fix that please?
@luka Thanks, but changing over to a new element would have been a LOT of work for me. Thankfully ChatGPT helped me solve it, after a lot of trial and error. This is what I ended up with, the change being to force layout recalculation on modal close: