I want to disable the way the select displays the popover, with the selected item being on the select, popover moving weird, just want to disable it, and position the menu under the select permanently.
I've been through Select
's files, couldn't find it. if you can walk me through, I'll do it myself and make a PR.
The popover is moving according to the selected item and there is no disable option / reposition option.
I want the menu to be under the select.
@w3nda Following the documentation:
<Menu
anchorOrigin={{
vertical: "bottom",
horizontal: "left"
}}
transformOrigin={{
vertical: "top",
horizontal: "left"
}}
getContentAnchorEl={null}
https://codesandbox.io/s/9l17k3qnk4
I hope that help.
Oh, it's with the Select, let's go one step deeper:
<Select
MenuProps={{
anchorOrigin: {
vertical: "bottom",
horizontal: "left"
},
transformOrigin: {
vertical: "top",
horizontal: "left"
},
getContentAnchorEl: null
}}
>
King!
I've found that if the Menu has enough space under it, it will render perfectly, but if he won't have space on screen Menu will be pushed up. true? or broken behavior?
I've found that if the Menu has enough space under it, it will render perfectly, but if he won't have space on screen Menu will be pushed up.
@wenduzer This sounds like the expected behavior.
Oh, it's with the Select, let's go one step deeper:
@oliviertassinari Thanks, this is exactly what I have been searching for past 2 hours.
@Shrikant9 How can we improve the discoverability of the answer?
How can we improve the discoverability of the answer?
@oliviertassinari In my opinion, having more diverse versions of demos on the demo page of <Select />
component. Although honestly, I've recently started using material-ui so still need to get used to the docs.
@Shrikant9 We would be happy to accept a pull request 馃憤.
@oliviertassinari thank you my friend, you helped me very very very much. I know material ui well enough, but I couldn鈥檛 come to this decision
We will likely change the default position with #18493.
make default it would be very good
Most helpful comment
Oh, it's with the Select, let's go one step deeper:
https://codesandbox.io/s/18l2042y97