Body overflow hidden with modal


In this project,, 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)