1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 22:54:11 +00:00

Grid view support drag drop item to path (#6429)

* feature - drag and drop file to target path in grid view

fix typo

* update target path item background color when drag enter

* fix bug - select-all checkbox is actived after the last item is moved to another path

* fix bug - drag drop action conflict with multi-select by keyboard

* remove console log

* fix type error
This commit is contained in:
Aries
2024-07-27 12:04:33 +08:00
committed by GitHub
parent 953f17e717
commit 559dfff42b
7 changed files with 85 additions and 9 deletions

View File

@@ -1912,7 +1912,7 @@ class LibContentView extends React.Component {
this.setState({
selectedDirentList: selectedDirentList,
isDirentSelected: selectedDirentList.length > 0,
isAllDirentSelected: selectedDirentList.length === newDirentList.length,
isAllDirentSelected: newDirentList.length ? selectedDirentList.length === newDirentList.length : false,
});
};