Skip to content

Commit

Permalink
Merge pull request #138 from nih-sparc/fix-reset-all-bug
Browse files Browse the repository at this point in the history
fixed reset all bug and bumped version
  • Loading branch information
egauzens authored Feb 18, 2024
2 parents abd6cdc + 8adb746 commit 30e4bb8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nih-sparc/sparc-design-system-components",
"version": "0.27.4",
"version": "0.27.5",
"private": false,
"scripts": {
"serve": "vue-cli-service serve",
Expand Down Expand Up @@ -97,4 +97,4 @@
"type": "git",
"url": "[email protected]:nih-sparc/sparc-design-system-components.git"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,10 @@ export default {
})
},
uncheckAll: function() {
if (this.visibleData === undefined)
{
this.$refs.tree.setCheckedKeys([])
},
uncheckAllVisible: function () {
if (this.visibleData === undefined) {
this.$refs.tree.setCheckedKeys([])
return
}
Expand Down Expand Up @@ -317,7 +319,7 @@ export default {
if ((!checkedLeafNodes.length || checkedLeafNodes.length >= this.totalVisibleLeafNodes) && !this.hasSingleNode) {
this.showAll = true
this.$nextTick(() => {
this.uncheckAll()
this.uncheckAllVisible()
this.updateParentFacetsSelectedStatus()
})
} else {
Expand Down

0 comments on commit 30e4bb8

Please sign in to comment.