React Material UI component selection problem
P粉105971514
P粉105971514 2024-03-31 10:58:02
0
1
429

If you go to "Select Component" in MUI https://mui.com/material-ui/react-select/

and open the drop-down menu for any selection. You'll notice that you won't be able to interact with the page until you close the dropdown.

Is there any solution to this problem? Can't even scroll after opening dropdown

P.S. I don't want to use NativeSelect.

P粉105971514
P粉105971514

reply all(1)
P粉012875927

You may have an event listener for scrolling (see documentation): https://developer.mozilla.org/en-US/docs/Web/API/Document/scroll_event

Then, when this happens, programmatically close the selection using the "open" tag on the selection component.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template