Skip to content

Commit

Permalink
fix(dropdown): fix disabled api
Browse files Browse the repository at this point in the history
  • Loading branch information
uyarn committed Sep 28, 2023
1 parent b993760 commit ff45fa9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/dropdown/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ const Dropdown: React.FC<DropdownProps> & {
};

const handleVisibleChange = (visible: boolean, context: PopupVisibleChangeContext) => {
if (disabled) return;
togglePopupVisible(visible);
popupProps?.onVisibleChange?.(visible, context);
};
Expand Down

0 comments on commit ff45fa9

Please sign in to comment.