Skip to content

Commit

Permalink
fix(Dropdown): pass event to click function
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Nov 14, 2023
1 parent 050c9c8 commit 60fa2be
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 @@ -29,7 +29,7 @@
:rel="rel"
:target="target"
:class="[ui.item.base, ui.item.padding, ui.item.size, ui.item.rounded, active ? ui.item.active : ui.item.inactive, itemDisabled && ui.item.disabled]"
@click="(e) => [!!item.click && item.click(), !!href && !isExternal && navigate(e), close()]"
@click="(e) => [!!item.click && item.click(e), !!href && !isExternal && navigate(e), close()]"
>
<slot :name="item.slot || 'item'" :item="item">
<UIcon v-if="item.icon" :name="item.icon" :class="[ui.item.icon.base, active ? ui.item.icon.active : ui.item.icon.inactive, item.iconClass]" />
Expand Down

1 comment on commit 60fa2be

@vercel
Copy link

@vercel vercel bot commented on 60fa2be Nov 14, 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-nuxt-js.vercel.app
ui.nuxt.com
ui-nuxt-js.vercel.app

Please sign in to comment.