Skip to content

Commit 30e4bb8

Browse files
authored
Merge pull request #138 from nih-sparc/fix-reset-all-bug
fixed reset all bug and bumped version
2 parents abd6cdc + 8adb746 commit 30e4bb8

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nih-sparc/sparc-design-system-components",
3-
"version": "0.27.4",
3+
"version": "0.27.5",
44
"private": false,
55
"scripts": {
66
"serve": "vue-cli-service serve",
@@ -97,4 +97,4 @@
9797
"type": "git",
9898
"url": "[email protected]:nih-sparc/sparc-design-system-components.git"
9999
}
100-
}
100+
}

src/components/DropdownMultiselect/src/DropdownMultiselect.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,10 @@ export default {
226226
})
227227
},
228228
uncheckAll: function() {
229-
if (this.visibleData === undefined)
230-
{
229+
this.$refs.tree.setCheckedKeys([])
230+
},
231+
uncheckAllVisible: function () {
232+
if (this.visibleData === undefined) {
231233
this.$refs.tree.setCheckedKeys([])
232234
return
233235
}
@@ -317,7 +319,7 @@ export default {
317319
if ((!checkedLeafNodes.length || checkedLeafNodes.length >= this.totalVisibleLeafNodes) && !this.hasSingleNode) {
318320
this.showAll = true
319321
this.$nextTick(() => {
320-
this.uncheckAll()
322+
this.uncheckAllVisible()
321323
this.updateParentFacetsSelectedStatus()
322324
})
323325
} else {

0 commit comments

Comments
 (0)