-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
InputText: It doesn't take classNames when unstyled is true #6274
Comments
i thought in unstyled mode you were supposed to use PT? See: https://stackblitz.com/edit/kuem11-ajcwbr?file=src%2FApp.jsx |
@melloware okay. I am using unstyled mode to remove initial class names like other component |
i will leave this open as I am not sure but at least you have a workaround! |
will every component be like this now? |
Not sure i will let Primetek chime in. I assigned this to them. |
This is also a problem I experienced. Imagine you want to build a reusable component like a button, call it
Now, say I want to create a There are of course work-arounds, such as
But...it would be nice if PrimeReact just took care of this properly. The expected behaviour would be that the |
Agreed this is unexpected behavior. |
#6274 - InputText: It doesnt take classNames when unstyled is true
Thanks for the PR! Seems to fix it for the input text, but there are still some other components which suffer the same exact bug, e.g. the tab menu. Should we consider that part of this issue and keep this one open? |
I would create a new issue please and just use the bullet list feature of GitHub to list the components that have the issue! |
Done. Please see this issue. |
Describe the bug
InputText doesn't take given classNames when unstyled prop is true
Reproducer
https://stackblitz.com/edit/kuem11?file=src%2FApp.jsx,package.json
PrimeReact version
10.6.2
React version
18.x
Language
TypeScript
Build / Runtime
Create React App (CRA)
Browser(s)
Chrome
Steps to reproduce the behavior
Expected behavior
It must take given classNames, but remove initial classNames that come from prime
The text was updated successfully, but these errors were encountered: