-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
Autocomplete popper position #38526
Comments
const PopperMy = function ({className, ...props}: any) { .QueryAutocomplete-popper-mt { This one works. But why the others dont? lol literally took me hours to just get this simple customization done. |
The Popper element ( |
I know popper element is positioned absolutely. So by setting its "top" it supposes to move down away from the input right? But it does not work. I know we can target the paper element, but that's not what I need in my case. |
No, the componentsProps={{
popper: {
modifiers: [
{
name: "offset",
options: {
offset: [0, 20]
}
}
]
}
}} see https://codesandbox.io/s/peaceful-jepsen-y635c3?file=/Demo.tsx:554-776 |
Duplicates
Latest version
Steps to reproduce 🕹
Link to live example:https://codesandbox.io/s/silly-frog-8847kp?file=/Demo.tsx
Is it possible to position the popper? I'm trying to give some space between the input and the popper dropdown. I have tried to set marginTop/top using class name ".MuiAutocomplete-popper", componentsProps and PopperComponent. None of them worked.
Current behavior 😯
No response
Expected behavior 🤔
No response
Context 🔦
No response
Your environment 🌎
npx @mui/envinfo
The text was updated successfully, but these errors were encountered: