Skip to content

Commit 311d18e

Browse files
committed
fix: CDropdownItem: restore functional component events #73
1 parent 31ffedb commit 311d18e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/components/dropdown/CDropdownItem.vue

+7-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@ export default {
1111
props: this._props,
1212
staticClass: 'dropdown-item',
1313
attrs: { role: 'menuitem' },
14-
on: { click: () => this.$parent.$emit('dropdown-close') }
14+
on: {
15+
...this.$listeners,
16+
click: (e) => {
17+
this.$parent.$emit('dropdown-close')
18+
this.$emit('click', e)
19+
}
20+
}
1521
},
1622
this.$slots.default
1723
)

0 commit comments

Comments
 (0)