We currently have a select made in React with ReactSelect that has a fixed 16 options in the table. Currently, when the control
is clicked, the menu
appears which shows 11 items and has a vertical scroll to scroll down to show the remaining 5 items.
This would be better if all 16 items showed when menu
appeared, with no vertical scroll. We have tried to create the following custom style:
menu: (provided) => ({
...provided,
background: '#DDDDDD',
marginTop: '-1px',
zIndex: 10,
height: // what to put here? we've tried "auto", "fit-content", "100%" and none are good...
}),
is there another element in the select
(other than menu
) that we should be styling, or is there a better way to style the menu such that all options show?
Thanks!