Menu section: PassThrough context.item
has not right MenuItem entry
#6055
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
The TieredMenu component doesn't have the right
context.item
set in the PassThroughMethodOptions.In the example I try to set a
data-testid
with the PassThrough functionality based on theid
field of the MenuItems.This behavior works with the Menu component, but not with the TieredMenu component.
To illustrate the issue I gave every element with a
data-testid
a orange border.Curiously if I use
context.item.item
to access the data it works fine.Reproducer
https://stackblitz.com/edit/primevue-4-ts-vite-issue-template-wrnwmq?file=src%2FApp.vue
PrimeVue version
4.0.0
Vue version
3.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
TieredMenu
should have the same behavior asMenu
.The text was updated successfully, but these errors were encountered: