SplitButton
broken in Table
body when screen is less than 960px
wide
#17750
Labels
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Describe the bug
Hi everyone,
Thanks for the hard work on this library.
I have a problem where the popup menu in a
p-splitButton
is not playing nicely when inside ap-table
row.p-splitButton
in the last row of a table does not open it's dropdown:20250222-2306-36.8281385.mp4
960px
wide, thep-splitButton
's menu changes the width of the cell/column when opened, and reverts when closed.20250222-2309-57.6036576.mp4
MenuItems
, the more change in size of the table cell/row.20250222-2318-05.6565670.mp4
Here is a StackBlitz reproduction in Angular 19 as the default issue reproducer links to Angular 18.
This appears to be a regression, as the
p-splitButton
was working in Angular 16 with PrimeNG 16.Pull Request Link
No response
Reason for not contributing a PR
Other Reason
I don't know if we are using the
Table
orSplitButton
incorrectly. This code was working as expected on PrimeNG 16.Reproducer
Angular 19
https://stackblitz.com/edit/stackblitz-starters-hsjo6ot4?file=package.json
Angular 18
https://stackblitz.com/edit/github-adbwvdnw?file=src%2Fapp%2Fapp.component.ts
Environment
This is reproducible on StackBlitz in Chrome and Firefox.
The bug is present in at least:
And this same code worked in Angular 16.2.9.
Angular version
19.1.6
PrimeNG version
v19
Node version
20.18.3
Browser(s)
Firefox, Chrome
Steps to reproduce the behavior
SplitButton
s in the first table exampleappendTo="body"
andbreakpoint="9999px"
, but neither seem to help.Expected behavior
The menu should open without changing the table's layout:
20250222-2330-49.5212305.mp4
The text was updated successfully, but these errors were encountered: