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 in popup do not appear on hover. #13861

Open
ryankugel opened this issue Oct 11, 2023 · 2 comments
Open

TieredMenu: Submenus in popup do not appear on hover. #13861

ryankugel opened this issue Oct 11, 2023 · 2 comments
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@ryankugel
Copy link

Describe the bug

In past version of PrimeNG, submenus in popups were shown immediately when hovering over an item when using autoDisplay. This bug was introduced in PrimeNG 16.1.0. #13582 reported this bug, and a fix was made in #13593, but it does not appear to have fixed the problem.

This is due to to checking this.dirty in onItemMouseEnter(). When the popup is initially shown, this.dirty is false, so onItemChange(event) is not called until an item is clicked.

A potential solution for this bug is to update the show() function to set this.dirty to true if popup & autoDisplay are both true.

Environment

N/A

Reproducer

See below

Angular version

16.2.0

PrimeNG version

16.5.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

Use PrimeNG's showcase for the TieredMenu: https://primeng.org/tieredmenu

  1. In the Popup section, click the Show button.
  2. Hover over the items in the root menu, like "File" & "Edit" and note that their submenus do not show.

Expected behavior

Submenus should immediately appear when hovering over an item when popup and autoDisplay are set to true.

@ryankugel ryankugel 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 11, 2023
@ginger7890
Copy link

Hello,

We are having the same problem.

It seems this behavior depends on Window's "touch screen" feature.

Submenu pops up on mouse over when "touch screen" feature is enabled.
20231211_093010

Submenu does not pop up on mouse over when "touch screen" feature is disabled.
20231211_093129

For PCs without touch screens, the sub menu does not pop up on mouse over.

I have checked with five colleagues and this seems to be affecting the behavior.

We would like for the sub menu to pop up on mouse over as well even when "touch screen" feature is not available.

@WienemannCC
Copy link

We are experiencing the same Issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

3 participants