Panel Menu: On Click Events of Panel-Submenu-List causes focus event on Panel Root List #14236
Labels
LTS-PORTABLE
Issue's fix will be ported to supported LTS versions
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
When clicking on the submenu items of a PanelMenu menu item, a focus event is triggered on the upper menu list, which I believe is
p-menuitem-content
. The behavior is a little bit tricky to explain, but I did my best in the reproduction sectionEnvironment
I am on Angular 17 with PrimeNG ^16 but also have seen this behavior on the latest beta. This also happens on the primeng.org website
Reproducer
https://primeng.org/panelmenu
Angular version
17.0.3
PrimeNG version
^16.0.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
20.0.9
Browser(s)
No response
Steps to reproduce the behavior
You may go to https://primeng.org/panelmenu
Scroll down to the "Basic"
Expand "File" (if not already)
Click on "Delete" or "Export"
Notice a flickering Focus event happening on "New"
![image](https://private-user-images.githubusercontent.com/47125917/286433698-550670a8-5c2c-450d-897a-e61755299c7f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5OTE3NjgsIm5iZiI6MTczODk5MTQ2OCwicGF0aCI6Ii80NzEyNTkxNy8yODY0MzM2OTgtNTUwNjcwYTgtNWMyYy00NTBkLTg5N2EtZTYxNzU1Mjk5YzdmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDA1MTEwOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTdlMDc4YmMyNTUxNTJiODUwZjQ5N2IxOTg2ZjFiMjQ3YTNmMjMxMDAwYTIzN2YzZDNiZjI5MzljMDU0ZjgzNzkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.-YzCys6aEDzYUmQXz3sEbW3t1D8AxmTOoD8Z7wecP0g)
Expand "Edit"
Click on "Right", "Center", or "Justify"
Notice a flickering Focus event happening on "Left"
![image](https://private-user-images.githubusercontent.com/47125917/286433670-223d92dc-d793-4cd9-ad84-d2ec5c05d72b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5OTE3NjgsIm5iZiI6MTczODk5MTQ2OCwicGF0aCI6Ii80NzEyNTkxNy8yODY0MzM2NzAtMjIzZDkyZGMtZDc5My00Y2Q5LWFkODQtZDJlYzVjMDVkNzJiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDA1MTEwOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM1OGUyYTk5MDk2OTk4OTI5NGM3YThhZmZkMDMwMjQ2ODNlNzI2MWQ5YTA4ZGZiZDM4YjA2Y2FiYmUyOWQwZmYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.9zou1a3xmXOpx3YWA-Ql09P3j-C89NBsmkgmGXd87pE)
Expected behavior
The focus event should not be triggered. It should act similar to how it did on v15, or just not focus/flicker the top item
The text was updated successfully, but these errors were encountered: