Skip to content

Commit

Permalink
enh(NcAppNavigationCaption): Forward listeners
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Ng <chrng8@gmail.com>
  • Loading branch information
Pytal committed Sep 2, 2023
1 parent 7e2dcd2 commit 2094f57
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/components/NcAppNavigationCaption/NcAppNavigationCaption.vue
Expand Up @@ -91,7 +91,8 @@
<!-- Actions -->
<div v-if="hasActions"
class="app-navigation-caption__actions">
<NcActions v-bind="$attrs">
<NcActions v-bind="$attrs"
v-on="$listeners">
<!-- @slot Slot for the actions menu -->
<slot name="actions" />
<template #icon>
Expand All @@ -111,11 +112,21 @@ export default {
components: {
NcActions,
},
inheritAttrs: false,
props: {
name: {
type: String,
required: true,
},
/**
* Any [NcActions](#/Components/NcActions?id=ncactions-1) prop
*/
// Not an actual prop but needed to show in vue-styleguidist docs
// eslint-disable-next-line
' ': {},
},
computed: {
Expand Down

0 comments on commit 2094f57

Please sign in to comment.