Skip to content

Commit

Permalink
Merge pull request #97 from nih-sparc/fix-dropdown-multiselect
Browse files Browse the repository at this point in the history
dropdown multiselect fix
  • Loading branch information
egauzens authored Mar 7, 2022
2 parents 34e1771 + 4c8ec76 commit 9182818
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion 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.26.7",
"version": "0.26.8",
"private": false,
"scripts": {
"serve": "vue-cli-service serve",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9182818

Please sign in to comment.