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

Accordion: pt options for root applied twice #3955

Closed
jfitzsimmons2 opened this issue May 13, 2023 · 1 comment
Closed

Accordion: pt options for root applied twice #3955

jfitzsimmons2 opened this issue May 13, 2023 · 1 comment
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@jfitzsimmons2
Copy link

jfitzsimmons2 commented May 13, 2023

Describe the bug

I'm experimenting with global pt options and noticed that when setting this pt option in the global config

  accordion: {
    root: {
      class: "root-global"
    }
  }

"root-class" is applied twice, once to the root of the Accordion, and once to the root each AccordionTab component. Compare this with the behavior shown in the wireframe, and it seems the class should only be applied to the Accordion root.

Reproducer

https://codesandbox.io/p/sandbox/happy-ioana-lv0r02

PrimeVue version

3.29.0

Vue version

3.x

Language

ALL

Build / Runtime

Vue CLI App

Browser(s)

No response

Steps to reproduce the behavior

  1. Look at the PT options being set for accordion
  2. Inspect the accordion and notice the class being applied twice

Expected behavior

The class should only apply to the Accordion root.

@jfitzsimmons2 jfitzsimmons2 added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label May 13, 2023
@tugcekucukoglu tugcekucukoglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Jun 8, 2023
@tugcekucukoglu
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

3 participants