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

Menu: usePassThrough abnormal behavior #5655

Open
kl-nevermore opened this issue Dec 29, 2023 · 4 comments
Open

Menu: usePassThrough abnormal behavior #5655

kl-nevermore opened this issue Dec 29, 2023 · 4 comments
Labels
Component: Unstyled Issue related to unstyled/passthrough attributes

Comments

@kl-nevermore
Copy link
Contributor

kl-nevermore commented Dec 29, 2023

Describe the bug

If more than two pts are submitted via usePassThrough then it won't work
But when I passed pt.value, it worked!
So far, I have only found this issue with the Menu.
not sure related #5215

Reproducer

https://stackblitz.com/edit/react-c3usuz?file=src%2FApp.js

PrimeReact version

10.2.1

React version

17.x

Language

TypeScript

Build / Runtime

Create React App (CRA)

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

@kl-nevermore kl-nevermore added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Dec 29, 2023
@melloware melloware added Component: Tailwind Tailwind specific issue and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Dec 29, 2023
@melloware
Copy link
Member

@kl-nevermore wonder if its related to my comment here: #5621 (comment)

@kl-nevermore
Copy link
Contributor Author

I update Reproducer, SplitButton no problem

@melloware
Copy link
Member

OK interesting. So that issue with menu and button is only when using Global Passthrough as it must look for any word menu or button

@kl-nevermore
Copy link
Contributor Author

yes
using Global Passthrough and usePassThrough will cause this problem
Reproducer updated

@melloware melloware added Component: Unstyled Issue related to unstyled/passthrough attributes and removed Component: Tailwind Tailwind specific issue labels Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Unstyled Issue related to unstyled/passthrough attributes
Projects
None yet
Development

No branches or pull requests

2 participants