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

ContextMenu: attributes could not be automatically inherited #3197

Closed
ga676005 opened this issue Oct 31, 2022 · 0 comments
Closed

ContextMenu: attributes could not be automatically inherited #3197

ga676005 opened this issue Oct 31, 2022 · 0 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@ga676005
Copy link

Describe the bug

Adding class on ContextMenu will show warning message. It seems that its root node Portal 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 component

Expected behavior

Setting attributes on ContextMenu component should fall through correctly and no warning occurs.

@ga676005 ga676005 added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Oct 31, 2022
@tugcekucukoglu tugcekucukoglu added this to the 3.18.1 milestone Oct 31, 2022
@tugcekucukoglu tugcekucukoglu self-assigned this Oct 31, 2022
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

No branches or pull requests

2 participants