From 3ac17188cb846bd89ba6a15c65a49a4383b479b8 Mon Sep 17 00:00:00 2001 From: gopienkonikita Date: Wed, 19 Jan 2022 17:07:33 +0300 Subject: [PATCH] Fixed Bug 54083 - Client.Files. Fixed file selection reset --- .../Client/src/components/Article/MainButton/index.js | 1 + .../Client/src/pages/Home/Section/Body/index.js | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/products/ASC.Files/Client/src/components/Article/MainButton/index.js b/products/ASC.Files/Client/src/components/Article/MainButton/index.js index f9569f95db5..a1464b25c23 100644 --- a/products/ASC.Files/Client/src/components/Article/MainButton/index.js +++ b/products/ASC.Files/Client/src/components/Article/MainButton/index.js @@ -179,6 +179,7 @@ class ArticleMainButtonContent extends React.Component { isDropdown={true} text={t("Common:Actions")} model={menuModel} + className="files-main-button" /> { const onMouseDown = (e) => { if ( - e.target.closest(".scroll-body") && - !e.target.closest(".files-item") && - !e.target.closest(".not-selectable") + (e.target.closest(".scroll-body") && + !e.target.closest(".files-item") && + !e.target.closest(".not-selectable")) || + e.target.closest(".files-main-button") || + e.target.closest(".add-button") || + e.target.closest(".search-input-block") ) { setSelection([]); setBufferSelection(null);