ContextMenu "template" prop type error #1688
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
I'm submitting a ... (check one with "x")
CodeSandbox Case (Bug Reports)
Please demonstrate your case at CodeSandbox by using the issue template below. Issues without a test case have much less possibility to be reviewed in detail and assisted.
https://codesandbox.io/s/nice-flower-47moy?file=/src/ContextMenuDemo.vue
Current behavior
When using
<template #item="{item}">
in<ContextMenu>
, it will throw warning[Vue warn]: Invalid prop: type check failed for prop "template". Expected Object, got Function
Expected behavior
Should not throw warning
Minimal reproduction of the problem with instructions
Open context demo on https://primefaces.org/primevue/showcase/#/contextmenu
Copy the code in Templating section from the docoument and Paste it to the demo.
Now It will throw warning when menu is opened
This is a similar issue to #1638 which has been resolved
34d6fc9
Vue version: 3.2.20
PrimeVue version: 3.8.1
Browser: [Microsoft Edge 94.0.992.50]
The text was updated successfully, but these errors were encountered: