@eturnity/eturnity_reusable_components 7.4.1 → 7.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eturnity/eturnity_reusable_components",
3
- "version": "7.4.1",
3
+ "version": "7.4.2",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
@@ -547,7 +547,15 @@ export default {
547
547
  computed: {
548
548
  optionLength() {
549
549
  if (this.isDropdownOpen) {
550
- return this.$refs.dropdown.$children.length
550
+ // this filterRef is needed to check for the # of children on Filter dropdowns
551
+ const filterRef =
552
+ this.$refs.dropdown.$children &&
553
+ this.$refs.dropdown.$children.length > 1
554
+ ? this.$refs.dropdown.$children
555
+ : this.$refs.dropdown.$children[0].$children
556
+ ? this.$refs.dropdown.$children[0].$children
557
+ : this.$refs.dropdown.$children
558
+ return filterRef.length
551
559
  } else {
552
560
  return 0
553
561
  }