-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Select] Change popover position #12208
Comments
@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! |
@wenduzer This sounds like the expected behavior. |
@oliviertassinari Thanks, this is exactly what I have been searching for past 2 hours. |
@Shrikant9 How can we improve the discoverability of the answer? |
@oliviertassinari In my opinion, having more diverse versions of demos on the demo page of |
@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’t come to this decision |
We will likely change the default position with #18493. |
make default it would be very good |
How can we do this when using Textfield for Select? it doesn't accept the menuprops |
@Tasin5541 You can use |
@oliviertassinari |
Expected Behavior
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.Current Behavior
The popover is moving according to the selected item and there is no disable option / reposition option.
Examples
I want the menu to be under the select.
Context
The text was updated successfully, but these errors were encountered: