Gurkan T
Gurkan T

Reputation: 257

How to avoid scrolling issue when using React Select with Dialog?

There is a scrolling problem when Select (React Select) is used in Dialog (Mui Dialog). Scrolling is required within the modal.

React Select Height Problem

As seen in the pictures, when I use Mui Select, the modal is used without causing problems by overflowing. How can I do this with React select?

Mui Select

zIndex values ​​were given to the styles property of React select, but it did not work.

container: (baseStyles: any) => ({
...baseStyles,
zIndex: 9999
}),
menu: (baseStyles: any) => ({
...baseStyles,
zIndex: 9999
}),

Upvotes: 0

Views: 51

Answers (0)

Related Questions