Skip to content

Commit

Permalink
Fixed #1688 - ContextMenu "template" prop type error
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Oct 22, 2021
1 parent 4920f2d commit 6b196a6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/contextmenu/ContextMenuSub.vue
Expand Up @@ -49,7 +49,7 @@ export default {
default: false
},
template: {
type: Object,
type: Function,
default: null
},
exact: {
Expand Down
7 changes: 6 additions & 1 deletion src/views/contextmenu/ContextMenuDemo.vue
Expand Up @@ -11,7 +11,12 @@
<div class="content-section implementation">
<div class="card">
<img alt="logo" src="demo/images/nature/nature3.jpg" @contextmenu="onImageRightClick" aria-haspopup="true">
<ContextMenu ref="menu" :model="items" />
<!-- <ContextMenu ref="menu" :model="items" /> -->
<ContextMenu ref="menu" :model="items">
<template #item="{item}">
<a :href="item.url">{{item.label}}</a>
</template>
</ContextMenu>
</div>
</div>

Expand Down

0 comments on commit 6b196a6

Please sign in to comment.