Skip to content

Commit

Permalink
fix(input): -webkit-appearance: none (#1755)
Browse files Browse the repository at this point in the history
fix #1701

Co-authored-by: maxin <[email protected]>
  • Loading branch information
nnmax and maxin authored Jan 4, 2022
1 parent 59ef46a commit fbbea02
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/input/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const Input = React.forwardRef<HTMLSpanElement, InputProps>((props, ref) => {
[suffixCls, customizeSuffix]
);
return (
<span className={inputClass} {...rest} style={style} ref={ref}>
<span className={inputClass} style={style} ref={ref}>
{prefix}
<input
data-testid="input"
Expand Down
8 changes: 4 additions & 4 deletions src/input/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@
padding: 0;
overflow: hidden;
color: @gray-5;
font-family: 'PingFang SC', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif, Lato;
text-align: left;
background-color: #0000;
border: none;
font-family+: @font-family-primary;
font-family+: @font-family-number;
-webkit-appearance: none;
appearance: none;
.text-body1();

&:not([disabled]):hover,
Expand Down Expand Up @@ -111,9 +112,8 @@
min-height: 36px;
padding: 7px 12px;
color: @gray-5;
font-family: 'PingFang SC', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif, Lato;
resize: vertical;
font-family+: @font-family-primary;
font-family+: @font-family-number;
.text-body1();
&:disabled {
background-color: @gray-1;
Expand Down

1 comment on commit fbbea02

@vercel
Copy link

@vercel vercel bot commented on fbbea02 Jan 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.