Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/react-ui/DropdownButton/DropdownButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export type DropdownButtonProps = Omit<ButtonProps, 'onClick'> & {
* @public
*/
export function DropdownButton({
options, onClick, icon, ...rest
Comment thread
AleksandarDev marked this conversation as resolved.
options, onClick, icon, disabled, ...rest
}: DropdownButtonProps) {
const id = useId();
const [open, setOpen] = useState(false);
Expand Down Expand Up @@ -60,7 +60,7 @@ export function DropdownButton({
{...rest}
aria-describedby={id}
onClick={handleButtonClick}
disabled={!options?.length}
disabled={disabled || !options?.length}
>
{icon}
</IconButton>
Expand All @@ -69,7 +69,7 @@ export function DropdownButton({
{...rest}
aria-describedby={id}
onClick={handleButtonClick}
disabled={!options?.length}
disabled={disabled || !options?.length}
/>
)}
<Popover
Expand Down