diff --git a/package.json b/package.json index fb8fccc1..5d0ad7e1 100644 --- a/package.json +++ b/package.json @@ -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", @@ -97,4 +97,4 @@ "type": "git", "url": "git@github.com:nih-sparc/sparc-design-system-components.git" } -} +} \ No newline at end of file diff --git a/src/components/DropdownMultiselect/src/DropdownMultiselect.vue b/src/components/DropdownMultiselect/src/DropdownMultiselect.vue index dc10ca3c..936ebb09 100644 --- a/src/components/DropdownMultiselect/src/DropdownMultiselect.vue +++ b/src/components/DropdownMultiselect/src/DropdownMultiselect.vue @@ -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 } @@ -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 {