Fix Error 52282 - Client.Files. When grabbing the left mouse button, page elements go beyond their boundaries.

This commit is contained in:
Tatiana Lopaeva 2021-09-01 15:25:20 +03:00
parent e4c34e5068
commit 1fdb42a53a
3 changed files with 18 additions and 3 deletions

View File

@ -11,6 +11,11 @@ const onButtonClick = (url) => {
const CampaignsBanner = (props) => {
const { headerLabel, subHeaderLabel, img, btnLabel, link } = props;
const onMouseDown = (e) => {
e.preventDefault();
};
return (
<BannerWrapper>
<a href={link}>
@ -21,7 +26,7 @@ const CampaignsBanner = (props) => {
{subHeaderLabel}
</Text>
<img src={img} />
<img src={img} onMouseDown={onMouseDown} />
</a>
<Button

View File

@ -443,7 +443,7 @@ class TreeFolders extends React.Component {
<StyledTreeMenu
className="files-tree-menu"
checkable={false}
draggable
draggable={dragging}
disabled={isLoading}
multiple={false}
showIcon

View File

@ -174,6 +174,10 @@ const HeaderComponent = ({
const numberOfModules = mainModules.filter((item) => !item.separator).length;
const onMouseDown = (e) => {
e.preventDefault();
};
return (
<>
<Header
@ -193,7 +197,12 @@ const HeaderComponent = ({
<LinkWithoutRedirect className="header-logo-wrapper" to={defaultPage}>
{!isPersonal ? (
<img alt="logo" src={props.logoUrl} className="header-logo-icon" />
<img
alt="logo"
src={props.logoUrl}
className="header-logo-icon AA"
onMouseDown={onMouseDown}
/>
) : !isMobileOnly ? (
<img
alt="logo"
@ -202,6 +211,7 @@ const HeaderComponent = ({
AppServerConfig.proxyURL,
"/static/images/personal.logo.react.svg"
)}
onMouseDown={onMouseDown}
/>
) : (
<img