[bug]: ContextMenu fails to update location on right-click to a new location after opening #6117
Open
2 tasks done
Labels
bug
Something isn't working
Describe the bug
Title: ContextMenu fails to update location on right-click to a new location after opening
Description:
When using the
ContextMenu
component in ShadCN UI, the context menu correctly opens when right-clicking. However, if the user right-clicks again at a different location within the same container, the context menu remains at the previous location instead of updating to the new one. The position is not recalculated when the context menu is opened at a new location.Steps to Reproduce:
ContextMenu
.Expected Behavior:
When right-clicking in a new location, the context menu should update its position to the new click location and display accordingly.
Actual Behavior:
The context menu stays at the previous location and does not update its position.
Affected component/components
ContextMenu
How to reproduce
Steps to Reproduce:
ContextMenu
.Expected Behavior:
When right-clicking in a new location, the context menu should update its position to the new click location and display accordingly.
Actual Behavior:
The context menu stays at the previous location and does not update its position.
Codesandbox/StackBlitz link
https://v0.dev/chat/ORkigkeuMgZ
Logs
No response
System Info
Before submitting
The text was updated successfully, but these errors were encountered: