mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-08-06 08:57: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}
|
icon={icon}
|
||||||
aria-haspopup='menu'
|
aria-haspopup='menu'
|
||||||
role='menuitem'
|
role='menuitem'
|
||||||
disabled={children.length > 0 ? false : true}
|
disabled={!React.Children.count(children)}
|
||||||
ref={triggerRef}
|
ref={triggerRef}
|
||||||
>
|
>
|
||||||
{trigger(groupName)}
|
{trigger(groupName)}
|
||||||
|
|||||||
Reference in New Issue
Block a user