fix: fix cursor style when Select has showSearch and disabled props (#56340)

This commit is contained in:
高艳兵
2025-12-24 10:14:19 +08:00
committed by GitHub
parent c0589e939d
commit d680ea3d30

View File

@@ -218,6 +218,10 @@ const genSelectInputStyle: GenerateStyle<SelectToken> = (token) => {
background: token.colorBgContainerDisabled,
color: token.colorTextDisabled,
cursor: 'not-allowed',
input: {
cursor: 'not-allowed',
},
},
// ==========================================================
@@ -281,7 +285,7 @@ const genSelectInputStyle: GenerateStyle<SelectToken> = (token) => {
// ======================== Show Search =======================
{
[`&-show-search:not(${componentCls}-customize-input)`]: {
[`&-show-search:not(${componentCls}-customize-input):not(${componentCls}-disabled)`]: {
cursor: 'text',
},
},