Currently, I am utilizing material-ui v3.1.2 in combination with react js v16.5.2. Throughout my page, I have implemented <TextField>
with the select
attribute in multiple locations. However, whenever I click on one of these TextField
elements and the dropdown appears, it causes the parent vertical scrollbar to be hidden. This results in some shifting of the UI towards the right, which is not desirable. I am seeking a solution to prevent this issue from occurring. Any assistance would be greatly appreciated.
Here is the screenshot taken before opening the dropdown:
https://i.sstatic.net/7isTL.png
And here is the screenshot captured after opening the dropdown:
https://i.sstatic.net/B6pbT.png