question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Misaligned menu when using menuPortalTarget and menuPlacement = auto

See original GitHub issue

Are 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

Dec-17-2020 16-39-03

Thanks for your work on the library!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6

github_iconTop GitHub Comments

2reactions
odusseyscommented, Jul 1, 2021

I am getting the same issue on a Macbook with no mouse.

2reactions
ebonowcommented, Jan 11, 2021

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found