Skip to content

Commit

Permalink
fix: Hide Spinner of InputNumber when type is number (ant-design#16926)
Browse files Browse the repository at this point in the history
* fix: Hide Spinner of InputNumber when type is number

* Firefox not obedient
  • Loading branch information
zombieJ authored Jun 3, 2019
1 parent 10fec94 commit a6ef4ca
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion components/input-number/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,14 @@
border-radius: @border-radius-base;
outline: 0;
transition: all 0.3s linear;
-moz-appearance: textfield;
-moz-appearance: textfield !important;
.placeholder();

&[type='number']::-webkit-inner-spin-button,
&[type='number']::-webkit-outer-spin-button {
margin: 0;
-webkit-appearance: none;
}
}

&-lg {
Expand Down

0 comments on commit a6ef4ca

Please sign in to comment.