-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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 are not uncovered on mouse hover anymore #13455
Comments
…e is hovered over the parent menu item Regression from 28989fd To fix the problem the isDirty flag needs to be set to true when the popup is shown or an item is clicked. This will ensure that onItemChange(..) is called when a MenuItem is hovered by the mouse, which will mark the MenuItem as active and therefore uncover the sub MenuItems (children).
…e is hovered over the parent menu item Regression from 28989fd To fix the problem the isDirty flag needs to be set to true when the popup is shown or an item is clicked. This will ensure that onItemChange(..) is called when a MenuItem is hovered by the mouse, which will mark the MenuItem as active and therefore uncover the sub MenuItems (children).
This looks good. I would suggest we first incorporate my PR and create a follow up with your fix? To keep every PR clean and simple. :) |
Fixed #13455 - TieredMenu does not show sub menus when mouse is hovered over the parent menu item
Some of the component behaviors (focus, hover, mouse events etc.) are changing and will continue to change across the PrimeNG due to accessibility implementation. Since the accessibility implementation is a giant leap forward and includes a lot of refactoring and rework, some of the functionalities may unintentionally be broken. I see that the autoDisplay feature is broken with this update, we'll discuss it with the dev team and find a solution. Thanks for reporting the issue! |
@cetincakiroglu @Maran23 |
But this is a somewhat separate issue. My fix was only inside the |
Regression from 16.3.0 |
Describe the bug
Since the
TieredMenu
refactoring done in 28989fd, it works a bit different now (16rc2 -> 16.0.0).Before, all sub
MenuItem
s of aTieredMenu
uncovered themself after hovering over the parentMenuItem
when inpopup
mode.Environment
Doesn't matter in this case.
Reproducer
See below
Angular version
16.0.0
PrimeNG version
16.1.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
16.16.0
Browser(s)
All
Steps to reproduce the behavior
This can be easily reproduced by checking out the showcase.
https://www.primefaces.org/primeng-v15-lts/tieredmenu
https://primeng.org/tieredmenu
Popup
section, click on theShow
Button.MenuItem
s likeFile
orEdit
, all subMenuItem
s will be uncovered in Version 15. This does not happen anymore in Version16, you need to click on theMenuItem
to uncover all subMenuItem
s.Expected behavior
Sub
MenuItem
s uncover themself when you hover over the parentMenuItem
.NOTE:
autoDisplay
istrue
but it seems to not affect anything at all.Before the refactoring this behaviour worked when the
TieredMenu
is apopup
orautoDisplay
was turned on AFAIK.The text was updated successfully, but these errors were encountered: