-
Notifications
You must be signed in to change notification settings - Fork 561
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
MenuPopover position breaking #842
Comments
@Scotty813 can you please include a reproducible example of your issue using the CodeSandbox Template that's provided in the issue template, as well as describe what you mean by the positioning "breaks entirely". Would also be nice to have the rest of the details filled in on the issue template. Thanks! |
Should be good to go now, let me know if you need anything else |
I'm experiencing the same issue. |
Was the position prop intended to only be used with the portal prop set to true? |
🐛 Bug report
We have a certain case when we need to set portal to false on the MenuPopover component. However, this causes the positioning to break entirely. For example, setting portal={false} and position={positionRight} so that the menu lines does not extend past the right side of the button. It appears that the position callback is not running at all when portal is false.
Current Behavior
Expected behavior
I would expect the dropdown to align to the right side of the menu button, not extending past it.
Reproducible example
https://codesandbox.io/s/relaxed-shadow-r5vu1?file=/src/index.js
Suggested solution(s)
Not sure, but the calculations for calculating positionRight when portal is set to false needs to change
Additional context
Your environment
The text was updated successfully, but these errors were encountered: