Skip to content
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

Dynamic context menu is not opened upward when there is not enough space downward #238

Open
ferhoyos opened this issue Oct 14, 2024 · 0 comments

Comments

@ferhoyos
Copy link

In the current situation, the react-topology context menu opens downward, but it changes direction to upward if there is not enough space:

Image

However, this does not happen with dynamic context menus - those created using promises, where some options depend on asynchronous processes like API calls. In this case, the context menu always opens downward, even when there is not enough space to display it properly.

Image

This is likely an issue of recalculating the best popper placement whenever the context menu component updates (after the promise is resolved)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Ready to assign
Development

No branches or pull requests

1 participant