TabView: p-tabview-ink-bar doesn't follow the size of TabPanel header property change #10837
Labels
LTS-PORTABLE
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Hi
I had some problems with tabView, especially the p-tabview-ink-bar in TabPanel. the p-tabview-ink-bar seems to not follow the size of changed property [header] for a TabPanel. I tested at init (with ngif) and after init (change from input), both seem to not handle it. I found that if I trigger tabView.tabChanged after an [header] update, the p-tabview-ink-bar changes size properly.
For now, I kind of fixed it on my own with a directive tabPanel to manually trigger the tabView.tabChanged (on a settimeout for UI change) when a [header] changes. But maybe the best will be to fix it in the component directly.
My guess maybe is to add the "tabView.tabChanged" at this point: https://github.com/primefaces/primeng/blob/master/src/app/components/tabview/tabview.ts#L123
Thank you.
The text was updated successfully, but these errors were encountered: