ContextMenu: attributes could not be automatically inherited #3197
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
Adding class on
ContextMenu
will show warning message. It seems that its root nodePortal
doesn't handle attributes inheritance.[Vue warn]: Extraneous non-props attributes (class) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.
ContextMenu
https://github.com/primefaces/primevue/blob/master/src/components/contextmenu/ContextMenu.vue
Portal
https://github.com/primefaces/primevue/blob/master/src/components/portal/Portal.vue
Reproducer
https://codesandbox.io/s/distracted-kilby-jjv4fv
PrimeVue version
3.18.0
Vue version
3.x
Language
ALL
Build / Runtime
Vite
Browser(s)
Chrome
Steps to reproduce the behavior
Add a class to the
ContextMenu
componentExpected behavior
Setting attributes on
ContextMenu
component should fall through correctly and no warning occurs.The text was updated successfully, but these errors were encountered: