Skip to content

Commit

Permalink
Merge pull request #6502 from Rekl0w/Fix#6497
Browse files Browse the repository at this point in the history
Fix #6497: PanelMenu isItemActive Update
  • Loading branch information
nitrogenous authored Apr 30, 2024
2 parents a6973cf + c93a5b4 commit d215b28
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/lib/panelmenu/PanelMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,6 @@ export const PanelMenu = React.memo(
props.model.forEach((item) => {
if (item.expanded) {
changeActiveItem(null, item);
item.expanded = false;
}
});
// eslint-disable-next-line react-hooks/exhaustive-deps
Expand All @@ -272,7 +271,7 @@ export const PanelMenu = React.memo(
}

const key = item.id || idState + '_' + index;
const active = isItemActive(item) || item.expanded;
const active = isItemActive(item);
const iconClassName = classNames('p-menuitem-icon', item.icon);
const headerIconProps = mergeProps(
{
Expand Down

0 comments on commit d215b28

Please sign in to comment.