I am facing an issue with my React modal that contains a react-select
component. Some of the options at the bottom of the modal are not visible. How can I ensure that the select overlay appears on top of the modal to display all options?
https://i.sstatic.net/Dinam.png
I have attempted using the z-index
property, but it did not resolve the issue.
<MainSelect
className="select"
id={name}
isMulti
isRtl={!locale.ltr}
components={{ Option: OptionComponent }}
styles={this.customStyles}
theme={this.customTheme}
options={options}
value={value}
placeholder={placeholder}
onChange={this.handleChange}
onBlur={formik.onBlur}
onMenuOpen={() => {
if (setScroll) setScroll();
this.props.formik.setStatus("onMenuOpen");
}}
/>