@dimailn/vuetify 2.7.2-alpha4 → 2.7.2-alpha6

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.
@@ -88,14 +88,18 @@ export default baseMixins.extend({
88
88
  }
89
89
  },
90
90
  genActivator () {
91
- const node = getSlot(this, 'activator', Object.assign(this.getValueProxy(), {
91
+ let node = getSlot(this, 'activator', Object.assign(this.getValueProxy(), {
92
92
  attrs: {
93
93
  ...this.genActivatorListeners(),
94
94
  ...this.genActivatorAttributes(),
95
95
  }
96
96
  })) || []
97
97
 
98
- this.activatorNode = node
98
+ node = Array.isArray(node) ? node : [node]
99
+
100
+ this.activatorNode = node.flatMap(node => {
101
+ return node.type === Symbol.for('v-fgt') ? node.children : node
102
+ })
99
103
 
100
104
  return node
101
105
  },
@@ -167,7 +171,7 @@ export default baseMixins.extend({
167
171
  // Use the contents of the activator slot
168
172
  // There's either only one element in it or we
169
173
  // don't have a click event to use as a last resort
170
- const vm = this.activatorNode[0].component.ctx
174
+ const vm = this.activatorNode[0].component?.ctx
171
175
  if (
172
176
  vm &&
173
177
  (vm.isActivatable !== undefined || vm.isMenuable !== undefined)