TieredMenu: Submenus in popup do not appear on hover. #13861
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
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
inonItemMouseEnter()
. When the popup is initially shown,this.dirty
isfalse
, soonItemChange(event)
is not called until an item is clicked.A potential solution for this bug is to update the
show()
function to setthis.dirty
totrue
ifpopup
&autoDisplay
are bothtrue
.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
Expected behavior
Submenus should immediately appear when hovering over an item when
popup
andautoDisplay
are set totrue
.The text was updated successfully, but these errors were encountered: