mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-22 08:53:29 +08:00
fix(tree): allow pointer events for disabled checkboxes in tree
This commit is contained in:
parent
9f66652868
commit
c56971786b
@ -204,6 +204,12 @@ export const genBaseStyle = (prefixCls: string, token: TreeToken): CSSObject =>
|
||||
backgroundColor: controlItemBgActiveDisabled,
|
||||
},
|
||||
|
||||
// we can not set pointer-events to none for checkbox in tree
|
||||
// ref: https://github.com/ant-design/ant-design/issues/39822#issuecomment-2605234058
|
||||
[`${treeCls}-checkbox-disabled`]: {
|
||||
pointerEvents: 'unset',
|
||||
},
|
||||
|
||||
// not disable
|
||||
[`&:not(${treeNodeCls}-disabled)`]: {
|
||||
// >>> Title
|
||||
|
Loading…
Reference in New Issue
Block a user