primeng icon indicating copy to clipboard operation
primeng copied to clipboard

TieredMenu: SubMenus are not uncovered on mouse hover anymore

Open Maran23 opened this issue 3 years ago • 6 comments

Describe the bug

Since the TieredMenu refactoring done in https://github.com/primefaces/primeng/commit/28989fd4cafe4ee5b7d805f5b059618f5fc1128b, it works a bit different now (16rc2 -> 16.0.0). Before, all sub MenuItems of a TieredMenu uncovered themself after hovering over the parent MenuItem when in popup 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

  1. In the Popup section, click on the Show Button.
  2. If you hover over all the MenuItems like File or Edit, all sub MenuItems will be uncovered in Version 15. This does not happen anymore in Version16, you need to click on the MenuItem to uncover all sub MenuItems.

Expected behavior

Sub MenuItems uncover themself when you hover over the parent MenuItem.

NOTE: autoDisplay is true but it seems to not affect anything at all. Before the refactoring this behaviour worked when the TieredMenu is a popup or autoDisplay was turned on AFAIK.

Maran23 avatar Aug 07 '23 16:08 Maran23

I believe that issue: "TieredMenu: On mobile tieredmenu requires double tap to open submenu #13433" can be fixed by updating Maran23's pull request #13457 with the following one line change:

This proposed change incorporates part of @SoyDiego pull request #13458 to fix issue #13433

rosenthalj avatar Aug 09 '23 10:08 rosenthalj

I believe that issue: "TieredMenu: On mobile tieredmenu requires double tap to open submenu #13433" can be fixed by updating Maran23's pull request #13457 with the following one line change:

This proposed change incorporates part of @SoyDiego pull request #13458 to fix issue #13433

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. :)

Maran23 avatar Aug 09 '23 12:08 Maran23

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 avatar Aug 09 '23 14:08 cetincakiroglu

@cetincakiroglu @Maran23 This issue still occurs on menubar, worked fine before autoDisplay true does nothing currently

informatika-medved avatar Aug 12 '23 11:08 informatika-medved

This issue still occurs on menubar, worked fine before autoDisplay true does nothing currently

But this is a somewhat separate issue. My fix was only inside the tieredmenu code, not inside the menu component.

Maran23 avatar Aug 14 '23 12:08 Maran23

Regression from 16.3.0 This is once more an issue.

MarcinBorowski95 avatar Aug 30 '23 13:08 MarcinBorowski95