diff --git a/client/components/dropdown/dropdown.jsx b/client/components/dropdown/dropdown.jsx index 57bf4549c..c22ce9010 100644 --- a/client/components/dropdown/dropdown.jsx +++ b/client/components/dropdown/dropdown.jsx @@ -64,7 +64,7 @@ const Dropdown = ({ groupName, className = null, icon, children, color = null, c // the trigger is the piece placed inside the opening button of the menu. // This method allows for creating a generic span with the group name, // or using a bespoke element (like a graphic) passed in from props to be used as the trigger - const trigger = (groupName, icon)=>{ + const trigger = (groupName = 'menu', icon = '')=>{ if(!customTrigger){ return <> {groupName} @@ -98,7 +98,6 @@ const Dropdown = ({ groupName, className = null, icon, children, color = null, c id={`${menuId}-trigger`} className={['menu-item', color].join(' ')} popoverTarget={menuId} - icon={icon} aria-haspopup='menu' role='menuitem' disabled={!React.Children.count(children)}