Skip to content

Commit

Permalink
Fix #5827: MenuBar respect menu id (#5828)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Jan 23, 2024
1 parent 4c6553a commit e09f5fe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/lib/menubar/MenubarSub.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ export const MenubarSub = React.memo(
};

const getItemId = (processedItem) => {
if (processedItem.item && processedItem.item.id) {
return processedItem.item.id;
}

return `${props.id}_${processedItem.key}`;
};

Expand Down

0 comments on commit e09f5fe

Please sign in to comment.