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: Close menu on selection (like PrimeVue) #3590

Closed
msalihaltun opened this issue Nov 8, 2022 · 0 comments · Fixed by #3591
Closed

TieredMenu: Close menu on selection (like PrimeVue) #3590

msalihaltun opened this issue Nov 8, 2022 · 0 comments · Fixed by #3591
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@msalihaltun
Copy link

Describe the bug

In TieredMenu component when popup property is used (i.e it is used as an overlay component), root level menu element does not close on item selection. Every inner level menu element disappears when one item is selected. Root level menu only closes when either the toggle event fires or a click outside happens.

Reproducer

https://www.primefaces.org/primereact/tieredmenu/

PrimeReact version

Latest

React version

17.x

Language

TypeScript

Build / Runtime

Create React App (CRA)

Browser(s)

No response

Steps to reproduce the behavior

  1. Go to the demo on https://www.primefaces.org/primereact/tieredmenu/
  2. Go to the overlay menu demo.
  3. Use the overlayed menu to select an inner element. The inner level elements will disappear but the root level does not.

Expected behavior

Similar to the demo on https://www.primefaces.org/primevue/tieredmenu, I expect the menu will completely disappear on selection.

@msalihaltun msalihaltun 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 8, 2022
@melloware melloware changed the title Component: TieredMenu TieredMenu: Root element Nov 8, 2022
@melloware melloware changed the title TieredMenu: Root element TieredMenu: Close menu on selection (like PrimeVue) Nov 8, 2022
melloware added a commit to melloware/primereact that referenced this issue Nov 8, 2022
@melloware melloware added Type: Bug Issue contains a defect related to a specific component. 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 8, 2022
@melloware melloware self-assigned this Nov 8, 2022
@melloware melloware added this to the 8.7.2 milestone Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants