Skip to content

Commit

Permalink
fix(Dropdown): prevent panel display when no items
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Jan 31, 2023
1 parent c90cd9c commit a764486
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/components/elements/Dropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</slot>
</MenuButton>

<div v-if="open" ref="container" :class="[containerClass, widthClass]" @mouseover="onMouseOver">
<div v-if="open && items.length" ref="container" :class="[containerClass, widthClass]" @mouseover="onMouseOver">
<transition appear v-bind="transitionClass">
<MenuItems :class="baseClass" static>
<div v-for="(subItems, index) of items" :key="index" :class="groupClass">
Expand Down

1 comment on commit a764486

@vercel
Copy link

@vercel vercel bot commented on a764486 Jan 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ui – ./

ui-git-dev-nuxtlabs.vercel.app
nuxthq-ui.vercel.app
ui-nuxtlabs.vercel.app

Please sign in to comment.