File tree Expand file tree Collapse file tree
packages/web/src/javascripts/Controllers/ItemList Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -269,10 +269,9 @@ export class ItemListController
269269 this . disposers . push (
270270 reaction (
271271 ( ) => this . selectedItemsCount ,
272- ( count , prevCount ) => {
272+ ( count ) => {
273273 const hasNoSelectedItem = count === 0
274- const onlyOneSelectedItemAfterChange = prevCount > count && count === 1
275- if ( hasNoSelectedItem || onlyOneSelectedItemAfterChange ) {
274+ if ( hasNoSelectedItem ) {
276275 this . cancelMultipleSelection ( )
277276 }
278277 } ,
@@ -1187,7 +1186,7 @@ export class ItemListController
11871186 if ( userTriggered && hasShift && ! isMobileScreen ( ) ) {
11881187 await this . selectItemsRange ( { selectedItem : item } )
11891188 } else if ( userTriggered && this . isMultipleSelectionMode ) {
1190- if ( this . selectedUuids . has ( uuid ) && hasMoreThanOneSelected ) {
1189+ if ( this . selectedUuids . has ( uuid ) ) {
11911190 this . removeSelectedItem ( uuid )
11921191 } else if ( isAuthorizedForAccess ) {
11931192 this . selectedUuids . add ( uuid )
You can’t perform that action at this time.
0 commit comments