From 217d1a1e03e3f09722c20f024b28e892991a51c1 Mon Sep 17 00:00:00 2001 From: MadCcc <1075746765@qq.com> Date: Mon, 30 Jan 2023 17:31:10 +0800 Subject: [PATCH] fix: Input should hide webkit cancel button (#40457) --- components/input/style/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/input/style/index.ts b/components/input/style/index.ts index db94fc3557..f85eb51061 100644 --- a/components/input/style/index.ts +++ b/components/input/style/index.ts @@ -317,7 +317,6 @@ export const genInputGroupStyle = (token: InputToken): CSSObject => { }, [`${componentCls}`]: { - float: 'inline-start', width: '100%', marginBottom: 0, textAlign: 'inherit', @@ -528,6 +527,11 @@ const genInputStyle: GenerateStyle = (token: InputToken) => { paddingBottom: colorSmallPadding, }, }, + + '&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration': + { + '-webkit-appearance': 'none', + }, }, }; };