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

panelMenu- sub MenuItem is disabled but still it can be clickable and expandable #13827

Closed
lk-granit opened this issue Oct 9, 2023 · 0 comments · Fixed by #13841
Closed

panelMenu- sub MenuItem is disabled but still it can be clickable and expandable #13827

lk-granit opened this issue Oct 9, 2023 · 0 comments · Fixed by #13841
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@lk-granit
Copy link

Describe the bug

Sub MenuItem is disabled but still it can be clickable and expandable. How can I fix it? I have already provided "expanded: false, disabled: true" for New (below code) Menu item.

Below is my code.

HTML: <p-panelMenu [model]="items" >
this.items = [
{
label: 'File',
icon: 'pi pi-fw pi-file',
items: [
{
label: 'New',
icon: 'pi pi-fw pi-plus', expanded: false, disabled: true,
items: [
{
label: 'Bookmark',
icon: 'pi pi-fw pi-bookmark',
}
],
},
{
label: 'Delete',
icon: 'pi pi-fw pi-trash',
},
],
},
];
}

Environment

Menu

Reproducer

No response

Angular version

16.2.8

PrimeNG version

16.4.1

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

18.18.0

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

@lk-granit lk-granit 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 9, 2023
mehmetcetin01140 added a commit to mehmetcetin01140/primeng that referenced this issue Oct 9, 2023
@cetincakiroglu cetincakiroglu added this to the 16.4.2 milestone Oct 9, 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 Oct 9, 2023
cetincakiroglu added a commit that referenced this issue Oct 11, 2023
Fixed #13827 - Update conditionals for disabled menu item
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.

2 participants