Skip to content

Commit

Permalink
fix(dropdown): 修复父节点设置disabled后依然可以点击的问题 (#3030) (#3031)
Browse files Browse the repository at this point in the history
  • Loading branch information
zyprepare authored Nov 6, 2024
1 parent 241447e commit c93f20d
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 c93f20d

Please sign in to comment.