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

Tree className property not working #1068

Closed
NathanPB opened this issue Oct 29, 2019 · 1 comment · Fixed by #1069
Closed

Tree className property not working #1068

NathanPB opened this issue Oct 29, 2019 · 1 comment · Fixed by #1069
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@NathanPB
Copy link
Contributor

I'm submitting a ... (check one with "x")

[ x ] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://forum.primefaces.org/viewforum.php?f=57

Codesandbox Case (Bug Reports)
https://codesandbox.io/s/primereact-test-6h1kl

Current behavior
The classes listed in the className property of any Tree element are not included to the DOM.

Expected behavior
The custom classes listed in the className property should appear in the generated HTML.

Minimal reproduction of the problem with instructions

  1. Create a primereact/tree component.
  2. Add anything in its classList property
  3. Run your project
  4. Open the browser debugger and notice that your custom class is not included anywhere in the component

Please tell us about your environment:

  • OS: OpenSuse Tumbleweed

  • Node Version: v10.16.1

  • NPM Version: 6.9.0

  • Serve Version: 11.2.0

  • React version: 16.9.0

  • PrimeReact version: 3.3.2
  • Browser: all
  • Language: all

According to the documentation, I understand as it should be done that way. I'm sorry if I'm missing something

mertsincan added a commit that referenced this issue Nov 5, 2019
Fixed #1068 - ClassName property of Tree component not working
@mertsincan
Copy link
Member

Thanks a lot!

Best Regards,

@mertsincan mertsincan added the Type: Bug Issue contains a defect related to a specific component. label Nov 5, 2019
@mertsincan mertsincan added this to the 3.3.3 milestone Nov 5, 2019
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