Web: Layout: Fixed close the context menu. (Only for Mobile Devices).
This commit is contained in:
parent
7e2a991eec
commit
cd00030b24
@ -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
|
||||
) {
|
||||
|
Loading…
Reference in New Issue
Block a user