Skip to content

Commit

Permalink
Fix primefaces#7678: MegaMenu change const to let
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Feb 5, 2025
1 parent ec81f40 commit 949f130
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/megamenu/MegaMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ export const MegaMenu = React.memo(
event.preventDefault();

if (horizontal) {
const _focusedItemInfo = focusedItemInfo;
let _focusedItemInfo = focusedItemInfo;

if (ObjectUtils.isNotEmpty(activeItemState) && activeItemState.key === focusedItemInfo.key) {
_focusedItemInfo = { index: -1, key: '', parentKey: activeItemState.key };
Expand Down

0 comments on commit 949f130

Please sign in to comment.