Skip to content

Commit

Permalink
fix(dropdown): fix item disabled status effects content behavior (#3024)
Browse files Browse the repository at this point in the history
  • Loading branch information
uyarn authored Aug 1, 2024
1 parent e2e5fcb commit 82e5f64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dropdown/DropdownItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const DropdownItem = forwardRef<HTMLLIElement, DropdownItemProps>((props, ref: R
const { classPrefix } = useConfig();
const [dropdownItemDom, setRefCurrent] = useDomRefCallback();

useRipple(isSubmenu ? null : ref?.current || dropdownItemDom);
useRipple(isSubmenu || disabled ? null : ref?.current || dropdownItemDom);

const handleItemClick = (e: React.MouseEvent) => {
if (disabled) return;
Expand Down

0 comments on commit 82e5f64

Please sign in to comment.