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(