diff --git a/package.json b/package.json index 5b7cf89c..9ee934ec 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@nih-sparc/sparc-design-system-components", - "version": "0.26.7", + "version": "0.26.8", "private": false, "scripts": { "serve": "vue-cli-service serve", diff --git a/src/components/DropdownMultiselect/src/DropdownMultiselect.vue b/src/components/DropdownMultiselect/src/DropdownMultiselect.vue index 67cb0623..5b6234ad 100644 --- a/src/components/DropdownMultiselect/src/DropdownMultiselect.vue +++ b/src/components/DropdownMultiselect/src/DropdownMultiselect.vue @@ -216,7 +216,7 @@ export default { // eslint-disable-next-line no-unused-vars filterNodes: function(data, node) { if (this.visibleData === undefined) { - if (this.optionsExpanded) return true; + if (this.optionsExpanded) { return true } if (this.numOptionsShown < 5) { this.numOptionsShown += 1 return true @@ -270,8 +270,8 @@ export default { this.$refs.tree.setChecked(id, false, true) }, setOptionsExpanded(isExpanded) { - this.optionsExpanded = isExpanded this.numOptionsShown = 0; + this.optionsExpanded = isExpanded }, setShowAll: function() { const checkedNodes = this.visibleCheckedNodes