fix(Input): hide default browser search cancel button when allowClear is used (#8356)

pull/8357/head
王炜晨 2025-09-15 16:36:35 +08:00
parent 723bb47a42
commit e30a8aee55
1 changed files with 10 additions and 0 deletions

View File

@ -200,6 +200,16 @@ export const genBasicInputStyle = (token: InputToken): CSSObject => ({
'&-textarea-rtl': { '&-textarea-rtl': {
direction: 'rtl', direction: 'rtl',
}, },
// Hide default browser search clear button
'&[type="search"]::-webkit-search-cancel-button': {
display: 'none',
},
'&[type="search"]::-ms-clear': {
display: 'none',
width: 0,
height: 0,
},
}); });
export const genInputGroupStyle = (token: InputToken): CSSObject => { export const genInputGroupStyle = (token: InputToken): CSSObject => {