Skip to content

Commit

Permalink
fix(dropdown): 修复父节点设置disabled后依然可以点击的问题 (#3030)
Browse files Browse the repository at this point in the history
  • Loading branch information
zyprepare committed Oct 29, 2024
1 parent f34b4ba commit 1521780
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/rare-needles-hang.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@hi-ui/dropdown": patch
"@hi-ui/hiui": patch
---

fix(dropdown): 修复父节点设置 disabled 后依然可以点击的问题 (#3030)
1 change: 1 addition & 0 deletions packages/ui/dropdown/src/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ const DropdownMenuItem = forwardRef<HTMLLIElement | null, DropdownMenuItemProps>
...rest,
trigger: triggerMethods,
parents: parentsProp,
disabled,
})

const cls = cx(
Expand Down

0 comments on commit 1521780

Please sign in to comment.