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

TabMenu is not updating its style when using unstyled mode and controlled mode #5992

Closed
melloware opened this issue Feb 17, 2024 · 0 comments · Fixed by #5993
Closed

TabMenu is not updating its style when using unstyled mode and controlled mode #5992

melloware opened this issue Feb 17, 2024 · 0 comments · Fixed by #5993
Assignees
Labels
Component: Unstyled Issue related to unstyled/passthrough attributes
Milestone

Comments

@melloware
Copy link
Member

Discussed in https://github.com/orgs/primefaces/discussions/1213

Originally posted by sjunior96 February 16, 2024
Hi all,

I am using the TabMenu component from the PrimeReact + Tailwind and I noticed that when I use it in controlled mode and as unstyled, when the activeIndex change, it does not update the tab style, as shown below:

Before tab changes
Captura de Tela 2024-02-17 às 00 48 35

After tab changes
Captura de Tela 2024-02-17 às 00 47 44

If we comment/remove the activeIndex and onTabChange props then it will work again.

Here is a Stackblitz example: https://stackblitz.com/edit/ze3hdg?file=src%2FApp.jsx

@melloware melloware transferred this issue from primefaces/community Feb 17, 2024
@melloware melloware added the Component: Unstyled Issue related to unstyled/passthrough attributes label Feb 17, 2024
@github-actions github-actions bot 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 17, 2024
@melloware melloware removed the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Feb 17, 2024
melloware added a commit to melloware/primereact that referenced this issue Feb 17, 2024
@melloware melloware self-assigned this Feb 17, 2024
@melloware melloware added this to the 10.5.2 milestone Feb 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Unstyled Issue related to unstyled/passthrough attributes
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant