fix: Segmented item pseudo should not block mouse event (#40894)

This commit is contained in:
MadCcc 2023-02-23 17:26:02 +08:00 committed by GitHub
parent 01a6da37a9
commit 6b552d53f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,6 +99,9 @@ const genSegmentedStyle: GenerateStyle<SegmentedToken> = (token: SegmentedToken)
insetInlineStart: 0,
borderRadius: 'inherit',
transition: `background-color ${token.motionDurationMid}`,
// This is mandatory to make it not clickable or hoverable
// Ref: https://github.com/ant-design/ant-design/issues/40888
pointerEvents: 'none',
},
[`&:hover:not(${componentCls}-item-selected):not(${componentCls}-item-disabled)`]: {