In the current situation, the react-topology context menu opens downward, but it changes direction to upward if there is not enough space:
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.
This is likely an issue of recalculating the best popper placement whenever the context menu component updates (after the promise is resolved)
In the current situation, the
react-topology
context menu opens downward, but it changes direction to upward if there is not enough space: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.
This is likely an issue of recalculating the best popper placement whenever the context menu component updates (after the promise is resolved)