-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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 > Responsive: stack is equal scroll, stack not showing #16291
Comments
I can see the same, on version 17.18.8 works fine |
temporal solutions:
or
@media screen and (max-width: 992px) {
.p-datatable-tbody > tr > td > .p-column-title {
display: block;
}
.p-datatable-tbody > tr > td:not(:last-child) {
border: 0 none;
}
.p-datatable-tbody > tr > td {
display: flex;
width: 100% !important;
align-items: center;
justify-content: space-between;
}
.p-datatable-thead > tr > th,
.p-datatable-tfoot > tr > td {
display: none !important;
}
} |
Looks to be an issue with the dom sanitization, checking the created style when stack is enabled shows this:
17.18.8 -> https://github.com/primefaces/primeng/blob/17.18.8/src/app/components/table/table.ts#L3043 Removing the dom sanitization bypass that was added in 17.18.9 for the style looks to be the fix unless that's needed for this style and just misbehaving for some reason. |
trouble also exist in 17.18.10 :( |
the stack option does not work regardless of the version of primeng with angular 18 |
inspired by the previous comment, I have this temporary fix in html:
in style.css (global):
|
I noticed that the whole "Responsive" section for v18's Table page is completely gone. Does this mean that support for this very, very useful feature is gone for good? |
Unfortunately, this issue cannot be fixed due to technical limitations. PrimeNg team has decided not to pursue a fix, as addressing it would introduce other complications. Thanks a lot for your understanding! |
Describe the bug
On a small screen, table responsive scroll and stack operate the same way: stack responsive is lost.
This error also happens in the primeng guide, in the table > responsive section
Environment
Chrome Versión 128.0.6613.84 (Build oficial) (64 bits)
Reproducer
No response
Angular version
17.3.12
PrimeNG version
17.18.9
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
latest
Browser(s)
Chrome
Steps to reproduce the behavior
No response
Expected behavior
The rows should be displayed as a stack facing down.
The text was updated successfully, but these errors were encountered: