Misaligned menu when using menuPortalTarget and menuPlacement = auto
See original GitHub issueAre you reporting a bug or runtime error?
A Bug
For some reason the menu is misaligned slightly to the left when using the body as a menuPortalTarget
and setting the menuPlacement
to auto, I’m not sure why this is the case and it only seems to happen in a specific layout (select on the right bottom), it seems like it could be adjusting for a potential scrollbar or something. When you hover over the items, the menu suddenly jumps to the correct position.
https://codesandbox.io/s/react-select-v3-sandbox-forked-d5txb?file=/example.js
Thanks for your work on the library!
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:6
Top Results From Across the Web
How to place React Select Menu - css - Stack Overflow
I tried menuPlacement = "auto" prop as you can see because from what I've seen in the documentation, it should do the positioning...
Read more >API - React Select
A flexible and beautiful Select Input control for ReactJS with multiselect, autocomplete and ajax support.
Read more >Help with React Select Menu : r/reactjs - Reddit
I tried menuPlacement = "auto" prop as you can see because from what I've seen in the documentation, it should do the positioning ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I am getting the same issue on a Macbook with no mouse.
@ArnaudWeyts Thank you for the update. I am able to replicate this now when there is a mouse. I’ll see if I can discover what might be causing this discrepancy. Please let me know if you come across the answer to this in the meantime.