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

MegaMenu subItems 'to' route ' is not working #2501

Closed
zongjingcom opened this issue Apr 26, 2022 · 2 comments
Closed

MegaMenu subItems 'to' route ' is not working #2501

zongjingcom opened this issue Apr 26, 2022 · 2 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working vue2
Milestone

Comments

@zongjingcom
Copy link

I'm submitting a ... (check one with "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 browser console report error:"The .native modifier for v-on is only valid on components but it was used on 'a'"

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

Please tell us about your environment:

Vue version: 2.6.14
PrimeVue version: 2.9.

Browser: All

Suggested Fix:
in MegaMenu on line 30:
@click.native="onLeafClick($event, item, navigate)"
should be:
@click="onLeafClick($event, item, navigate)"
Resolves the issue for me.

@tugcekucukoglu tugcekucukoglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working vue2 labels Apr 27, 2022
@mertsincan mertsincan self-assigned this Aug 22, 2022
@mertsincan mertsincan added this to the 2.10.0 milestone Aug 22, 2022
@mertsincan mertsincan changed the title V2.x MegaMenu subItems 'to' route ' is not working MegaMenu subItems 'to' route ' is not working Aug 22, 2022
@mertsincan
Copy link
Member

Fixed in fe8f56e

@Ttito19
Copy link

Ttito19 commented Jun 15, 2023

#4056 please

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 vue2
Projects
None yet
Development

No branches or pull requests

4 participants