primefaces / primereact

The Most Complete React UI Component Library
https://primereact.org
MIT License
6.21k stars 961 forks source link

TabView: Does not show which Tab is selected when using TabPanel with headerTemplate #6844

Closed dongpd1994 closed 4 days ago

dongpd1994 commented 5 days ago

Describe the bug

Do not show inkbar and do not dim inactive items when using headerTemplate of TabPanel.

Reproducer

https://stackblitz.com/edit/7d9xgf?file=src%2FApp.jsx

PrimeReact version

10.7.0

React version

18.x

Language

TypeScript

Build / Runtime

Create React App (CRA)

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

sja-cslab commented 5 days ago

That issue doesn't say anything. headerTemplate of what? That Stackblitz link is incorrect too - so we need a Reproducer that works and we need to know what exactly you want

github-actions[bot] commented 5 days ago

Please fork the Stackblitz project and create a case demonstrating your bug report. This issue will be closed if no activities in 20 days.

dongpd1994 commented 4 days ago

That issue doesn't say anything. headerTemplate of what? That Stackblitz link is incorrect too - so we need a Reproducer that works and we need to know what exactly you want

Sorry, I have updated the description. When I use TabView, and I want to customize the TabPanel header using headerTemplate props, the inkbar is not displayed.

melloware commented 4 days ago

I think your issue is this one which I provided a workaround: https://github.com/primefaces/primereact/issues/4738