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

InputTextarea: Duplicated class in DOM using className #7345

Closed
samy-mssi opened this issue Oct 16, 2024 · 0 comments · Fixed by #7346
Closed

InputTextarea: Duplicated class in DOM using className #7345

samy-mssi opened this issue Oct 16, 2024 · 0 comments · Fixed by #7346
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@samy-mssi
Copy link
Contributor

Describe the bug

On unstyled mode, adding className prop to <InputTextarea /> will add it twice. (see stackblitz).

Reproducer

https://stackblitz.com/edit/vitejs-vite-ra4kd6?file=src%2FApp.tsx

System Information

System:
    OS: Linux 6.5 Ubuntu 24.04.1 LTS 24.04.1 LTS (Noble Numbat)
    CPU: (24) x64 12th Gen Intel(R) Core(TM) i7-12850HX
    Memory: 12.74 GB / 31.01 GB
    Container: Yes
    Shell: 5.2.21 - /bin/bash
  Binaries:
    Node: 20.17.0 - ~/.nvm/versions/node/v20.17.0/bin/node
    Yarn: 1.22.22 - ~/.nvm/versions/node/v20.17.0/bin/yarn
    npm: 10.8.2 - ~/.nvm/versions/node/v20.17.0/bin/npm
  Browsers:
    Chrome: 128.0.6613.137
  npmPackages:
    react: ^18.2.0 => 18.2.0

Steps to reproduce the behavior

  1. Setup unstyled mode using PrimeReactProvider
  2. Add <InputTextarea className="my-classname" />
  3. run and check the DOM

Expected behavior

Expect "my-classname" to be added once

@samy-mssi samy-mssi added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Oct 16, 2024
samy-mssi added a commit to samy-mssi/primereact that referenced this issue Oct 16, 2024
@melloware melloware added this to the 10.8.5 milestone Oct 16, 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 Oct 16, 2024
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