Skip to content

Commit

Permalink
fix(dropdown-item): the disabled effect is unexpected (#2648)
Browse files Browse the repository at this point in the history
  • Loading branch information
betavs authored Dec 6, 2023
1 parent b62f073 commit c10e966
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/dropdown/DropdownItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ const DropdownItem = forwardRef<HTMLLIElement, DropdownItemProps>((props, ref: R
useRipple(isSubmenu ? null : ref?.current || dropdownItemDom);

const handleItemClick = (e: React.MouseEvent) => {
if (disabled) return;
onClick?.(value, e);
};
return (
Expand Down

0 comments on commit c10e966

Please sign in to comment.