diff --git a/packages/popper/src/usePopper.ts b/packages/popper/src/usePopper.ts index 4d1dd94076..c5f3aa2cad 100644 --- a/packages/popper/src/usePopper.ts +++ b/packages/popper/src/usePopper.ts @@ -27,17 +27,18 @@ const getTrigger = () => { // SubTree is formed by // So that the trigger element is within the slot, we need to take it out of the slot in order to attach // events on top of it - const targetSlot = children[0] + let targetSlot = children[0] if (targetSlot.length > 1) { console.warn('Popper will only be attached to the first child') } // This indicates if the slot is rendered with directives (e.g. v-if) or templates (e.g.