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

Panel Menu: On Click Events of Panel-Submenu-List causes focus event on Panel Root List #14236

Closed
jermylucas opened this issue Nov 29, 2023 · 1 comment
Assignees
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

Comments

@jermylucas
Copy link
Contributor

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 section

Environment

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

  1. Expand the Basic PanelMenu
  2. Expand a submenu (if you'd like), or
  3. Click on any of the submenu items that are not the upper-most item
  4. You will notice a ":focus" event being triggered as the other menu items are clicked

You may go to https://primeng.org/panelmenu

  1. Scroll down to the "Basic"

  2. Expand "File" (if not already)

  3. Click on "Delete" or "Export"

  4. Notice a flickering Focus event happening on "New"
    image

  5. Expand "Edit"

  6. Click on "Right", "Center", or "Justify"

  7. Notice a flickering Focus event happening on "Left"
    image

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

@jermylucas jermylucas added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Nov 29, 2023
@jermylucas
Copy link
Contributor Author

It appears this is a duplicate of #13940

@cetincakiroglu cetincakiroglu self-assigned this Nov 29, 2023
@cetincakiroglu cetincakiroglu added this to the 17.0.0-rc.1 milestone Nov 29, 2023
@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 Nov 29, 2023
@cetincakiroglu cetincakiroglu added the LTS-PORTABLE Issue's fix will be ported to supported LTS versions label Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

2 participants