fix: Fixes unselecting note deactivating multiple selection note when there is only one selected note left
This commit is contained in:
@@ -269,10 +269,9 @@ export class ItemListController
|
||||
this.disposers.push(
|
||||
reaction(
|
||||
() => this.selectedItemsCount,
|
||||
(count, prevCount) => {
|
||||
(count) => {
|
||||
const hasNoSelectedItem = count === 0
|
||||
const onlyOneSelectedItemAfterChange = prevCount > count && count === 1
|
||||
if (hasNoSelectedItem || onlyOneSelectedItemAfterChange) {
|
||||
if (hasNoSelectedItem) {
|
||||
this.cancelMultipleSelection()
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user