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

Closed
ryankugel opened this issue Oct 11, 2023 · 4 comments · Fixed by #16077
Closed

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

ryankugel opened this issue Oct 11, 2023 · 4 comments · Fixed by #16077
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

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.

@bjsawyer
Copy link
Contributor

I've opened a PR based on @kubedan 's suggestion here #16077

@cetincakiroglu cetincakiroglu added this to the 17.18.6 milestone Jul 25, 2024
@cetincakiroglu cetincakiroglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Jul 25, 2024
@DerekBolger
Copy link

DerekBolger commented Oct 23, 2024

Hi guys just to let you know, this issue also exists for the Menubar Component on your latest stable release. Tested by multiple people in the office using different variants of Microsoft Surface Books and Surface Book laptops (when touchscreen is enabled).

When hovering on a menu item with dropdown sub menu's wont appear.

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
Development

Successfully merging a pull request may close this issue.

6 participants