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

Table "Sticky" headers fail to "stick" when a table is placed inside an Accordion panel #11924

Closed
rosenthalj opened this issue Sep 12, 2022 · 0 comments · Fixed by #11935
Closed
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@rosenthalj
Copy link
Contributor

rosenthalj commented Sep 12, 2022

Describe the bug

A p-table with "sticky" columns fail to "stick" when placed within a p-accordion.

The following movie demonstrates the bug. I reproduced the bug by modifying the Table Sticky Demo. The left column contains a sticky table within a Accordion panel where the table column headers don't stick. The right column contains a standalone sticky table where the table column headers stick.

StickyTableBug.mov

This bug was induced when bug #11617 was fixed.

csschanges2

Environment

Happens in both stackblitz and local project

Reproducer

https://stackblitz.com/edit/primeng-tablesticky-demo-bapq4c?file=src%2Fapp%2Fapp.component.html,src%2Fapp%2Fapp.component.ts,src%2Fapp%2Fapp.module.ts,src%2Fapp%2Fapp.component.css,src%2Fstyles.css,src%2Fapp%2Fapp.component.spec.ts

Angular version

14.2.1

PrimeNG version

14.0.2

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

14+

Browser(s)

All Browsers

Steps to reproduce the behavior

https://primeng-tablesticky-demo-bapq4c.stackblitz.io/

Scroll up and down.

The column headers of the left table (within a p-accordion panel) will not stick. -- bad
The column headers of the right table (standalone) will stick. - good

Expected behavior

Sticky tables within an Accordion panel will have columns that stick.

@rosenthalj rosenthalj added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Sep 12, 2022
@cetincakiroglu cetincakiroglu self-assigned this Sep 15, 2022
@cetincakiroglu cetincakiroglu added this to the 14.1.1 milestone Sep 15, 2022
cetincakiroglu added a commit that referenced this issue Sep 15, 2022
Fixed #11924 - Table Sticky headers fail to stick when a table is pla…
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

Successfully merging a pull request may close this issue.

2 participants