From c93f20d42096e38c10a99e1e333f3a9d9c00cdbe Mon Sep 17 00:00:00 2001 From: zhouyun Date: Wed, 6 Nov 2024 19:46:54 +0800 Subject: [PATCH] =?UTF-8?q?fix(dropdown):=20=E4=BF=AE=E5=A4=8D=E7=88=B6?= =?UTF-8?q?=E8=8A=82=E7=82=B9=E8=AE=BE=E7=BD=AEdisabled=E5=90=8E=E4=BE=9D?= =?UTF-8?q?=E7=84=B6=E5=8F=AF=E4=BB=A5=E7=82=B9=E5=87=BB=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20(#3030)=20(#3031)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .changeset/rare-needles-hang.md | 6 ++++++ packages/ui/dropdown/src/Dropdown.tsx | 1 + 2 files changed, 7 insertions(+) create mode 100644 .changeset/rare-needles-hang.md diff --git a/.changeset/rare-needles-hang.md b/.changeset/rare-needles-hang.md new file mode 100644 index 000000000..0390813a4 --- /dev/null +++ b/.changeset/rare-needles-hang.md @@ -0,0 +1,6 @@ +--- +"@hi-ui/dropdown": patch +"@hi-ui/hiui": patch +--- + +fix(dropdown): 修复父节点设置 disabled 后依然可以点击的问题 (#3030) diff --git a/packages/ui/dropdown/src/Dropdown.tsx b/packages/ui/dropdown/src/Dropdown.tsx index a8aa053a6..ba7b1c4b2 100644 --- a/packages/ui/dropdown/src/Dropdown.tsx +++ b/packages/ui/dropdown/src/Dropdown.tsx @@ -270,6 +270,7 @@ const DropdownMenuItem = forwardRef ...rest, trigger: triggerMethods, parents: parentsProp, + disabled, }) const cls = cx(