Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(dropdown): 修复父节点设置disabled后依然可以点击的问题 (#3030) #3031

Merged
merged 1 commit into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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