Web: Layout: Fixed close the context menu. (Only for Mobile Devices).

This commit is contained in:
TatianaLopaeva 2021-04-16 12:45:21 +03:00
parent 7e2a991eec
commit cd00030b24

View File

@ -3,7 +3,13 @@ import { isTouchDevice } from "@appserver/components/utils/device";
import Scrollbar from "@appserver/components/scrollbar";
import { LayoutContextProvider } from "./context";
import PropTypes from "prop-types";
import { isMobile, isSafari, isIOS, isChrome } from "react-device-detect";
import {
isTablet,
isMobile,
isSafari,
isIOS,
isChrome,
} from "react-device-detect";
class MobileLayout extends Component {
constructor(props) {
super(props);
@ -45,6 +51,7 @@ class MobileLayout extends Component {
this.customScrollElm.scrollTop > 0 ? this.customScrollElm.scrollTop : 0;
if (
isTablet &&
document.getElementsByClassName("backdrop-active").length > 0 &&
!this.props.isArticleVisibleOnUnpin
) {