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

PanelMenu: Error when using #item slot #4671

Closed
FlipWarthog opened this issue Oct 22, 2023 · 1 comment · Fixed by #4672
Closed

PanelMenu: Error when using #item slot #4671

FlipWarthog opened this issue Oct 22, 2023 · 1 comment · Fixed by #4672
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@FlipWarthog
Copy link
Contributor

Describe the bug

When using #item slot, PanelMenu fails to render. Console shows the following error:

Uncaught ReferenceError: processedItem is not defined
    at Proxy.getMenuItemProps2 (primevue_panelmenu.js?v=98b45702:1113:45)
    at primevue_panelmenu.js?v=98b45702:1222:23
    at renderList (chunk-QSL5RKHU.js?v=3ab457b4:4140:16)

Looks like a copy/paste error here: e8acbef

Reproducer

https://stackblitz.com/edit/xq9nts-sjhrtg?file=src%2FApp.vue

PrimeVue version

3.37.0

Vue version

3.x

Language

TypeScript

Build / Runtime

Vue CLI App

Browser(s)

No response

Steps to reproduce the behavior

  1. Load stackblitz reproducer
  2. View console log

Expected behavior

No error

@FlipWarthog FlipWarthog added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Oct 22, 2023
FlipWarthog added a commit to FlipWarthog/primevue that referenced this issue Oct 22, 2023
@Rakasch
Copy link
Contributor

Rakasch commented Oct 23, 2023

Also get this issue after upgrading to primevue 3.37.0
Page does not load anymore due to this.
image

tugcekucukoglu added a commit that referenced this issue Oct 24, 2023
Fix #4671 - PanelMenu: Error when using #item slot
@tugcekucukoglu tugcekucukoglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Oct 24, 2023
@tugcekucukoglu tugcekucukoglu added this to the 3.38.0 milestone Oct 24, 2023
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

Successfully merging a pull request may close this issue.

3 participants