Skip to content

PanelMenu subItems 'to' route configuration breaks menu rendering #1536

Closed
@arjendekivet

Description

@arjendekivet

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

[x] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primevue/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=110

Current behavior
When configuring a 'to' on a menu subitem, the menu breaks

Expected behavior
Menu not breaking and navigating to configured 'to' route.

Minimal reproduction of the problem with instructions
** Sandbox **
https://codesandbox.io/s/priceless-orla-d6iyc?file=/src/App.vue

Please tell us about your environment:

  • Vue version: 3.2.6
  • PrimeVue version: 3.7.0

  • Browser: All

  • Suggested Fix:
    in panelmenu.js on line 124:
    "aria-expanded": isActive(item)
    should be:
    "aria-expanded": $options.isActive(item)
    Resolves the issue for me.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type: BugIssue contains a bug related to a specific component. Something about the component is not workingvue2-portable

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions