fix: 修复 #40288 带来的 draggable track 失效 (#40938)

This commit is contained in:
Long Hao (龙濠) 2023-02-27 16:26:19 +08:00 committed by GitHub
parent ab83c1b6cb
commit 8a25a926c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -170,6 +170,7 @@ const genBaseStyle: GenerateStyle<SliderToken> = (token) => {
[`${componentCls}-step`]: {
position: 'absolute',
background: 'transparent',
pointerEvents: 'none',
},
[`${componentCls}-dot`]: {
@ -181,6 +182,7 @@ const genBaseStyle: GenerateStyle<SliderToken> = (token) => {
borderRadius: '50%',
cursor: 'pointer',
transition: `border-color ${token.motionDurationSlow}`,
pointerEvents: 'auto',
'&-active': {
borderColor: token.colorPrimaryBorder,