Skip to content

Commit

Permalink
Refactor #10771
Browse files Browse the repository at this point in the history
  • Loading branch information
yigitfindikli committed Oct 27, 2021
1 parent 8f43723 commit 2b4ab89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/menu/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class MenuItemContent {

case 'Space':
case 'Enter':
if (listItem && DomHandler.hasClass(listItem, 'p-disabled')) {
if (listItem && !DomHandler.hasClass(listItem, 'p-disabled')) {
listItem.children[0].click();
}

Expand Down

0 comments on commit 2b4ab89

Please sign in to comment.