From ff45fa95019255e2e5ad1c5cf656fccbe80427f0 Mon Sep 17 00:00:00 2001 From: Uyarn Date: Thu, 28 Sep 2023 16:29:41 +0800 Subject: [PATCH] fix(dropdown): fix disabled api --- src/dropdown/Dropdown.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dropdown/Dropdown.tsx b/src/dropdown/Dropdown.tsx index b473d0a20c..3924f22a2c 100644 --- a/src/dropdown/Dropdown.tsx +++ b/src/dropdown/Dropdown.tsx @@ -48,6 +48,7 @@ const Dropdown: React.FC & { }; const handleVisibleChange = (visible: boolean, context: PopupVisibleChangeContext) => { + if (disabled) return; togglePopupVisible(visible); popupProps?.onVisibleChange?.(visible, context); };