From f716c390b9a76d0129ee23986554885f4a7836dd Mon Sep 17 00:00:00 2001 From: Gazook89 Date: Fri, 29 May 2026 10:54:58 -0500 Subject: [PATCH] Add some defaults to dropdown --- client/components/dropdown/dropdown.jsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)}