fix: Input should show cursor when disabled (#47280)

This commit is contained in:
MadCcc 2024-02-01 17:29:30 +08:00 committed by GitHub
parent 7ec7ab18da
commit 53b0b2475d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,6 +16,10 @@ export const genDisabledStyle = (token: InputToken): CSSObject => ({
cursor: 'not-allowed', cursor: 'not-allowed',
opacity: 1, opacity: 1,
'input[disabled]': {
cursor: 'not-allowed',
},
'&:hover:not([disabled])': { '&:hover:not([disabled])': {
...genHoverStyle( ...genHoverStyle(
mergeToken<InputToken>(token, { mergeToken<InputToken>(token, {