Skip to content

Commit

Permalink
Merge pull request #4494 from nextcloud-libraries/enh/forward-caption…
Browse files Browse the repository at this point in the history
…-listeners
  • Loading branch information
Pytal authored Sep 6, 2023
2 parents c338863 + 2094f57 commit d33b1f5
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/components/NcAppNavigationCaption/NcAppNavigationCaption.vue
Original file line number Diff line number Diff line change
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 d33b1f5

Please sign in to comment.