-
-
Notifications
You must be signed in to change notification settings - Fork 5.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 : Popover (dropdown) does not stay underneath #2370
Comments
Bug confirmed. |
I fixed my issue by adding a the prop 'disablePortal={true}' to the Popper component in the renderSuggenstionsContainer. |
@FACOLOMBANI Was that change inside the |
I did this inside react-admin code. I forked the component for customization because i needed to group choices, render groups and secondary information, so that was the fix to the Popper in Both AutocompleteArrayInput and AutocometeInput. In this page you will find the description for disablePortal prop https://material-ui.com/api/popper/. Hope it helps. |
@FACOLOMBANI Thanks! Do you believe you could make a PR allowing for a @fzaninotto I also consider the wrong positioning of the portal as a bug (not sure if they fixed this in later MUI versions though). Look here: Then, after filtering the results through typing: It seems to me that the |
@aflip for your last bug, i looked at my code again and saw i also added a modifier in the Popper component, look at the modifiers prop below Here is the description https://popper.js.org/popper-documentation.html#modifiers..keepTogether
I could create a PR for this. |
Wait, I had already created one, I am pusing now! :-) Thanks a lot! |
@FACOLOMBANI I tried the What worked was this though (somehow differently):
The above always shows the popper below the trigger element. I would prefer your solution but in my case it did not work, not sure why. |
@afilp The first work around for me was the one you just sent, but i needed the flip enabled to true, and i didn't needed the preventOverflow, and using keepTogether worked well with the flip. |
@FACOLOMBANI Thanks! Not sure why I did not see it working in my case. @djhi replied to the PR and he will make a better, more generic PR. |
Fixed by #2678 |
Hello !
What you were expecting:
That the dropdown stays underneath and won't cover the input.
What happened instead:
The dropdown is covering the input.
Steps to reproduce:
Works in demo app:
https://marmelab.com/react-admin-demo/#/reviews?filter=%7B%7D&order=DESC&page=1&perPage=25&sort=date
you can click outside and click again the input, the dropdown will still be on top on the input, preventing you from typing anything.
It's really annoying 😞
The text was updated successfully, but these errors were encountered: