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: separator menu item doesn't take care of className #6882

Closed
ar2my opened this issue Jul 14, 2024 · 1 comment · Fixed by #6884
Closed

Menu: separator menu item doesn't take care of className #6882

ar2my opened this issue Jul 14, 2024 · 1 comment · Fixed by #6884
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@ar2my
Copy link

ar2my commented Jul 14, 2024

Describe the bug

In a menu model containing separator with className :
{ separator: true, className: 'user-separator-classname' }
the className doesn't applies to final rendering

Reproducer

https://stackblitz.com/edit/ywyjat?file=src%2FApp.jsx,src%2Findex.css

PrimeReact version

10.6.6

React version

17.x

Language

TypeScript

Build / Runtime

Create React App (CRA)

Browser(s)

No response

Steps to reproduce the behavior

  1. open reproducer
  2. on the right the separator should appear darkgreen 10px height
    inspecting dom: the 'user-separator-classname' doesn't appears as class attribute:
    image

Expected behavior

menuitem separator should take care of user's classname.

@ar2my ar2my added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jul 14, 2024
ar2my added a commit to ar2my/primereact that referenced this issue Jul 14, 2024
@ar2my
Copy link
Author

ar2my commented Jul 14, 2024

proposed PR: #6883

@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 Jul 14, 2024
@melloware melloware added this to the 10.7.1 milestone Jul 14, 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
2 participants