How do I ensure that the Options list of Select components expands upward?

as the title, as shown in the figure:

clipboard.png

Mar.29,2021

this can't be done. Facing up and down is controlled by the select component itself. If there is not enough room to expand down, it will be up.

you can try. GetPopupContainer, doesn't know if it's feasible. It hasn't been verified.


set the style

.ant-select-dropdown{
    top:auto !important;
    bottom:0;
}
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eab4cd-47dfe.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eab4cd-47dfe.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?