Body overflow hidden with modal

Hello,

In this project, https://preview.webflow.com/preview/visaopura?utm_source=visaopura&preview=ff67962eb5df9bed24e61cb3b7bd4c2c, I’ve placed a custom code in the blog page so that when the user clicks the icon in the top right corner of the blog page (and it opens a menu in a modal window) the body overflow sets to hidden and so it doesn’t scroll; and when the user mouse out that menu the body overflow sets back to auto.

But it doesn’t work.

Can anyone help me?

Thanks in advance :slight_smile:


Here is my public share link: LINK
(how to access public share link)