Article From:https://segmentfault.com/q/1010000013703625
Question:

As shown, there are too many entries in the drop-down menu, so how do I add a scroll bar to it?

Answer 0:

RewriteantdStyle:

.ant-menu-submenu > .ant-menu {
    height: 100px;
    overflow: auto;
}

Answer 1:

You can configure dropdownClassName or dropdownStyle

One Reply to “How does antd add a scroll bar to the drop-down menu?”

  1. Thank you!!!
    My code for popover works fine:

    <List style={{ maxHeight: '500px', width: '300px', overflow: 'auto' }} …

Leave a Reply

Your email address will not be published. Required fields are marked *