Roh*_*rma 4 javascript reactjs react-select react-select-search
我正在使用反应选择,但我无法从下拉列表中删除旋转器/箭头。

我可以删除默认分隔符 | 和下拉指示器使用
<Select
components={{
IndicatorSeparator: () => null, DropdownIndicator: () => null
}}
{...}
/>
Run Code Online (Sandbox Code Playgroud)
但我怎样才能摆脱这些箭头呢?
我相信您正在某处设置该type=number元素input。为了删除向上/向下箭头。您可以使用本教程中的 CSS 代码。
您还可以在此处查看所有输入类型及其开箱即用的呈现方式。
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
/* Firefox */
input[type=number] {
-moz-appearance: textfield;
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
13234 次 |
| 最近记录: |