Skip to content

Commit

Permalink
JNG-6071 stabilize dropdowns (#498)
Browse files Browse the repository at this point in the history
  • Loading branch information
noherczeg authored Dec 17, 2024
1 parent 7a37ae6 commit ec9085d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export function DropdownButton({
.filter((menuItem) => menuItem.visible ?? true)
.map((menuItem, index) => {
return (
<Tooltip title={menuItem.tooltip}>
<Tooltip title={menuItem.tooltip} key={menuItem.id}>
<MenuItem
key={menuItem.label ?? '' + index}
id={menuItem.id}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export const columnsActionCalculator: ColumnActionsProvider<any, any> = (
showDropdownIcon={false}
menuItems={dropdownActions.filter(a => !a.hidden(params.row)).map((action) => ({
id: action.id,
key: action.id,
label: action.label,
startIcon: action.icon,
onClick: () => action.action!(params.row),
Expand Down

0 comments on commit ec9085d

Please sign in to comment.