mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-08-06 06:47:38 +00:00
fix disabled attribute
This commit is contained in:
@@ -78,7 +78,7 @@ const Dropdown = ({ groupName, className = null, icon, children, color = null, c
|
||||
icon={icon}
|
||||
aria-haspopup='menu'
|
||||
role='menuitem'
|
||||
disabled={children.length > 0 ? false : true}
|
||||
disabled={!React.Children.count(children)}
|
||||
ref={triggerRef}
|
||||
>
|
||||
{trigger(groupName)}
|
||||
|
||||
Reference in New Issue
Block a user