diff --git a/components/lib/confirmdialog/confirmdialog.d.ts b/components/lib/confirmdialog/confirmdialog.d.ts index dc816566f8..03a7f9c151 100644 --- a/components/lib/confirmdialog/confirmdialog.d.ts +++ b/components/lib/confirmdialog/confirmdialog.d.ts @@ -162,6 +162,10 @@ interface ConfirmDialogOptions { * @group Properties */ export interface ConfirmDialogProps extends Omit { + /** + * Optional key to match the key of the confirmation, useful to target a specific confirm dialog instance. + */ + group?: string | undefined; /** * Unique tag key used to separate the confirmDialog components in the page. */ diff --git a/components/lib/panelmenu/PanelMenu.js b/components/lib/panelmenu/PanelMenu.js index f393af6322..0a26b933cb 100644 --- a/components/lib/panelmenu/PanelMenu.js +++ b/components/lib/panelmenu/PanelMenu.js @@ -290,13 +290,9 @@ export const PanelMenu = React.memo( }, getPTOptions(item, 'headerSubmenuIcon', index) ); - - const submenuIcon = item.items && IconUtils.getJSXIcon( - active - ? (props.collapseIcon || ) - : (props.expandIcon || ) - ); - + + const submenuIcon = item.items && IconUtils.getJSXIcon(active ? props.collapseIcon || : props.expandIcon || ); + const headerLabelProps = mergeProps( { className: cx('headerLabel') diff --git a/components/lib/panelmenu/PanelMenuSub.js b/components/lib/panelmenu/PanelMenuSub.js index ad6036dc85..7360cf44ae 100644 --- a/components/lib/panelmenu/PanelMenuSub.js +++ b/components/lib/panelmenu/PanelMenuSub.js @@ -185,12 +185,8 @@ export const PanelMenuSub = React.memo( getPTOptions(processedItem, 'submenuicon', index) ); - const submenuIcon = item.items && IconUtils.getJSXIcon( - active - ? (props.collapseIcon || ) - : (props.expandIcon || ) - ); - + const submenuIcon = item.items && IconUtils.getJSXIcon(active ? props.collapseIcon || : props.expandIcon || ); + const submenu = createSubmenu(processedItem, active); const actionProps = mergeProps( {