From 8adb746f066518bc8b87937750d00167812ddb9d Mon Sep 17 00:00:00 2001 From: Eric Gauzens Date: Sun, 18 Feb 2024 09:54:31 -0500 Subject: [PATCH] fixed reset all bug and bumped version --- package.json | 4 ++-- .../DropdownMultiselect/src/DropdownMultiselect.vue | 8 +++++--- 2 files changed, 7 insertions(+), 5 deletions(-) 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 {