2.12.8
chrome node react-web 15.5.4
https://codepen.io/edencorbin/pen/WEamZa?editors=0010
Create a cascader with more then ~6 options. How can we control the height of the drop down so that more options are shown prior to the scroll bar interface?
Option to set how many items are shown prior to scroll, or a pixel height the drop down should be. I did not see this in the docs. A standard select usually auto sizes via the browser to try to show all options.
5-6 options are displayed and the rest are accessible via a scrollbar.
If I didn't see the option, thank you for your time pointing it out.
You can customize the style of the popup container(and the content) by adding popupClassName
.
.popupClassName {
.ant-cascader-menu {
height: xxx
}
}
Control Cascader height of drop down 下拉样式无法控制,组件没有提供方法
@ddcat1115
提供的style无法控制到下拉样式
Most helpful comment
You can customize the style of the popup container(and the content) by adding
popupClassName
.