admin管理员组文章数量:1287866
I am using from react-select but I am not able to remove spinners/arrows from the dropdown.
I am able to remove the default separator | and Dropdown Indicator using
<Select
ponents={{
IndicatorSeparator: () => null, DropdownIndicator: () => null
}}
{...}
/>
But how can I get rid of these arrows?
I am using from react-select but I am not able to remove spinners/arrows from the dropdown.
I am able to remove the default separator | and Dropdown Indicator using
<Select
ponents={{
IndicatorSeparator: () => null, DropdownIndicator: () => null
}}
{...}
/>
But how can I get rid of these arrows?
Share Improve this question edited Oct 14, 2020 at 6:58 Aniruddha Shevle 4,9194 gold badges27 silver badges40 bronze badges asked Oct 13, 2020 at 18:59 Rohit SharmaRohit Sharma 431 gold badge1 silver badge5 bronze badges1 Answer
Reset to default 8I believe you're setting the type=number
for the input
element somewhere. In order to remove the up/down arrow. you can use the css code from this tutorial.
You can also see all of the input types and how it's rendered out-of-the-box here.
/* 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;
}
Live Demo
本文标签: javascriptHow to get rid of or remove spinnersarrows in reactselectStack Overflow
版权声明:本文标题:javascript - How to get rid of or remove spinnersarrows in react-select? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741323883a2372362.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论