Skip to content

Commit

Permalink
Merge pull request #492 from ONLYOFFICE/bugfix/fix-selection-reset
Browse files Browse the repository at this point in the history
Fixed Bug 54083 - Client.Files. Fixed file selection reset
  • Loading branch information
Artem Tarasov authored Jan 19, 2022
2 parents aea69a3 + 3ac1718 commit 3dcc4c0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ class ArticleMainButtonContent extends React.Component {
isDropdown={true}
text={t("Common:Actions")}
model={menuModel}
className="files-main-button"
/>
<input
id="customFileInput"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,12 @@ const SectionBodyContent = (props) => {

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);
Expand Down

0 comments on commit 3dcc4c0

Please sign in to comment.