mirror of
https://github.com/ant-design/ant-design.git
synced 2026-02-09 02:49:18 +08:00
fix: fix cursor style when Select has showSearch and disabled props (#56340)
This commit is contained in:
@@ -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',
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user