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

MultiStateCheckbox: unstyled prop doesnt work properly #6061

Closed
mevlutcantuna opened this issue Feb 29, 2024 · 1 comment · Fixed by #6062
Closed

MultiStateCheckbox: unstyled prop doesnt work properly #6061

mevlutcantuna opened this issue Feb 29, 2024 · 1 comment · Fixed by #6062
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@mevlutcantuna
Copy link

mevlutcantuna commented Feb 29, 2024

Describe the bug

When I give the unstyled prop or className to MultiStateCheckbox, it doesn't take them.

version 10.3.3

https://stackblitz.com/edit/h1bpze-m9hvoj?file=src%2FApp.jsx

Reproducer

No response

PrimeReact version

10.3.3

React version

18.x

Language

TypeScript

Build / Runtime

Vite

Browser(s)

Tested in Chrome

Steps to reproduce the behavior

Use the demo to see the bug

Expected behavior

I expect when I give unstyled prop to the component, it should remove all classes that come from primereact and take classnames I gave.

@mevlutcantuna mevlutcantuna added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Feb 29, 2024
@melloware melloware added Type: Bug Issue contains a defect related to a specific component. and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Feb 29, 2024
@melloware melloware self-assigned this Feb 29, 2024
@melloware melloware added this to the 10.5.2 milestone Feb 29, 2024
melloware added a commit to melloware/primereact that referenced this issue Feb 29, 2024
@melloware
Copy link
Member

Good catch! I submitted a PR.

nitrogenous added a commit that referenced this issue Mar 18, 2024
Fix #6061: MultiStateCheckbox className on root element
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants