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(
|
this.disposers.push(
|
||||||
reaction(
|
reaction(
|
||||||
() => this.selectedItemsCount,
|
() => this.selectedItemsCount,
|
||||||
(count, prevCount) => {
|
(count) => {
|
||||||
const hasNoSelectedItem = count === 0
|
const hasNoSelectedItem = count === 0
|
||||||
const onlyOneSelectedItemAfterChange = prevCount > count && count === 1
|
if (hasNoSelectedItem) {
|
||||||
if (hasNoSelectedItem || onlyOneSelectedItemAfterChange) {
|
|
||||||
this.cancelMultipleSelection()
|
this.cancelMultipleSelection()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user