Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] PanelMenu template prop type issue #1732

Closed
olbe-solvve opened this issue Nov 5, 2021 · 0 comments
Closed

[Bug] PanelMenu template prop type issue #1732

olbe-solvve opened this issue Nov 5, 2021 · 0 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@olbe-solvve
Copy link

I'm submitting a ... (check one with "x")

[X] bug report => Search github for a similar issue or PR before submitting

CodeSandbox Case (Bug Reports)
https://codesandbox.io/s/nervous-darkness-rhx7g

Current behavior
spamming with warning about wrong prop type in the internal lib component

Expected behavior
no Vue warnings in the console

Minimal reproduction of the problem with instructions
after using Panel menu with templating feature Vue throws a warning to the console like this one

Invalid prop: type check failed for prop "template". Expected Object, got Function  
  at <PanelMenuSub model= [] class="p-panelmenu-root-submenu" template=fn<renderFnWithContext>  ... > 
  at <BaseTransition appear=false persisted=false mode=undefined  ... > 
  at <Transition name="p-toggleable-content" > 
  at <PanelMenu class="panel-menu" model= (5) [{…}, {…}, {…}, {…}, {…}] expandedKeys= {GENERAL: true} >

Take a look at the console in this sandbox https://codesandbox.io/s/nervous-darkness-rhx7g?file=/src/App.vue

Please tell us about your environment:
Windows, Vs Code, webpack

  • Vue version: 3.X
    3.0.0 with Typescript

  • PrimeVue version: 3.4.X
    3.8.2

  • Browser:
    all

@tugcekucukoglu tugcekucukoglu changed the title [Bug] PanelMenu prop type issue [Bug] PanelMenu template prop type issue Nov 8, 2021
@tugcekucukoglu tugcekucukoglu added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Nov 8, 2021
@tugcekucukoglu tugcekucukoglu added this to the 3.8.3 milestone Nov 8, 2021
@tugcekucukoglu tugcekucukoglu self-assigned this Nov 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

2 participants