diff --git a/web/ASC.Web.Client/src/components/NavMenu/index.js b/web/ASC.Web.Client/src/components/NavMenu/index.js
index 718d857fb7..e5dbe2f966 100644
--- a/web/ASC.Web.Client/src/components/NavMenu/index.js
+++ b/web/ASC.Web.Client/src/components/NavMenu/index.js
@@ -178,6 +178,7 @@ class NavMenu extends React.Component {
<>
{!isPreparationPortal && }
+ props.isPreparationPortal && "pointer-events: none; touch-action: none"}
}
.header-module-title {
@@ -145,6 +147,7 @@ const HeaderComponent = ({
isAdmin,
backdropClick,
isPersonal,
+ isPreparationPortal,
...props
}) => {
const { t } = useTranslation("Common");
@@ -174,8 +177,6 @@ const HeaderComponent = ({
};
const numberOfModules = mainModules.filter((item) => !item.separator).length;
- const isPreparationPortal =
- history.location.pathname === "/preparation-portal";
return (
<>