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

TieredMenu Submenus do not display within viewport #13929

Closed
shawnss opened this issue Oct 19, 2023 · 7 comments · Fixed by #15441 or #15444
Closed

TieredMenu Submenus do not display within viewport #13929

shawnss opened this issue Oct 19, 2023 · 7 comments · Fixed by #15441 or #15444
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@shawnss
Copy link

shawnss commented Oct 19, 2023

Describe the bug

When tiered menu is on the far right side of page the submenus do not automatically display on the left. This was working correctly in Prime NG version 15 (https://stackblitz.com/edit/a2runv?file=src%2Fapp%2Fdemo%2Ftiered-menu-popup-demo.html).

image

Environment

Windows

Reproducer

https://stackblitz.com/edit/oje4xw?file=src%2Fapp%2Fdemo%2Ftiered-menu-popup-demo.html

Angular version

16.x

PrimeNG version

16.x

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

16.14.2

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

@shawnss shawnss added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Oct 19, 2023
@stity
Copy link

stity commented Oct 25, 2023

Related issue : #12541

@shawnss
Copy link
Author

shawnss commented Oct 25, 2023

This was working in version 15!
https://stackblitz.com/edit/a2runv?file=package.json

@TaylorHo
Copy link

Hi @shawnss! I was facing the same issue, so I tried some CSS changes, based on the CSS of the component here on GitHub.
As shown here, on the CSS file of TieredMenu, there's a class called .p-submenu-list-flipped that flips the side of the submenu.

Even trying, I couldn't easily apply this to my project, so I implemented the same rule of the CSS code (left: -100%;) on my component, and it solved the issue.

I think that the issue needs to be resolved, but this can be used as a workaround now.

If someone tries to fix it, this CSS class is a good starting point to solve this issue.

Thanks!

@AliHamrouni
Copy link

Salut @shawnss comment vous avez résolut le problème, la class que vous avez implimentez s.v.p

@TaylorHo
Copy link

Hey @AliHamrouni, in my case, I have added globally the following CSS style:

.p-tieredmenu .p-submenu-list {
  left: -100%;
}

It works fine as a temporary troubleshooting since this CSS inverts the side where the submenu appears.

@AliHamrouni
Copy link

merci !! @shawnss

@WienemannCC
Copy link

We are experiencing the same problem. This should be fixed, the workaround is just that.

@cetincakiroglu cetincakiroglu added this to the 17.16.0 milestone May 3, 2024
@cetincakiroglu cetincakiroglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working LTS-PORTABLE Issue's fix will be ported to supported LTS versions LTS-16-PORTABLE and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible LTS-PORTABLE Issue's fix will be ported to supported LTS versions labels May 3, 2024
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
6 participants