0
0
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:
Gazook89
2026-04-25 23:33:04 -05:00
parent 4d3179fc35
commit 5b11827c56
+1 -1
View File
@@ -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)}